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