Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     if (auth()->check()) {
         $this->authorize('dashboard');
     } else {
         $this->middleware('auth');
     }
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->middleware('auth', ['except' => ['file', 'fileView', 'download']]);
     $this->user = auth()->user();
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
     $this->middleware('auth');
     $this->user = auth()->user();
 }