title: passing class public properties into view files and access them using $this
body: <p>is there a way to access all public properties for both Controller and ChildController 
  from view file using <strong>$this</strong></p>
  
  <pre><code>&lt;?PHP 
  
  class Controller {
  
       public $userFamilyName = "Doe";
  
  }
  
  class ChildController extends Controller{
  
       public $user = "John"
  
       public function routeFunction(){
           return view("viewFile")
       }
  
  }
  </code></pre>
  
  <p><strong>View File => viewFile.blade.php</strong></p>
  
  <pre><code>&lt;header&gt;Hello {$this-&gt;user} {$this-&gt;userFamilyName} !&lt;/header&gt;
  </code></pre>