diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index c6313a12..7b93a31a 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -23,7 +23,13 @@ class Controller extends BaseController public function __construct() { - $this->user = Sentinel::getUser(); + } + + public function __get($property) + { + if ($property == 'user') { + return Sentinel::getUser(); + } } public function arrange($data)