1 | <?php |
||
25 | abstract class Controller extends BaseController |
||
26 | { |
||
27 | use DispatchesJobs, ValidatesRequests; |
||
28 | |||
29 | /** |
||
30 | * Current logged in user. |
||
31 | * |
||
32 | * @var Guard |
||
33 | */ |
||
34 | protected $auth; |
||
35 | |||
36 | /** |
||
37 | * Constructor, inject an instance of logged user. |
||
38 | * |
||
39 | * @param \Illuminate\Contracts\Auth\Guard $auth |
||
40 | */ |
||
41 | 56 | public function __construct(Guard $auth) |
|
45 | } |
||
46 |