コード例 #1
0
ファイル: DashboardController.php プロジェクト: dwijpr/share
 public function __construct()
 {
     parent::__construct();
     if (auth()->check()) {
         $this->authorize('dashboard');
     } else {
         $this->middleware('auth');
     }
 }
コード例 #2
0
ファイル: HomeController.php プロジェクト: dwijpr/share
 public function __construct()
 {
     parent::__construct();
 }
コード例 #3
0
ファイル: FilesController.php プロジェクト: dwijpr/share
 public function __construct()
 {
     parent::__construct();
     $this->middleware('auth', ['except' => ['file', 'fileView', 'download']]);
     $this->user = auth()->user();
 }
コード例 #4
0
ファイル: ProfileController.php プロジェクト: dwijpr/share
 public function __construct()
 {
     parent::__construct();
     $this->middleware('auth');
     $this->user = auth()->user();
 }