Controller.php
Go to the documentation of this file.
1 <?php
22 namespace App\Http\Controllers;
23 
24 use Auth;
26 use Illuminate\Routing\Controller as BaseController;
29 
30 abstract class Controller extends BaseController
31 {
33 
34  public function __construct()
35  {
36  view()->share('signedIn', Auth::check());
37  view()->share('user', Auth::user());
38  }
39 }