app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index() {
        $user = User::find(Auth::id());
        return view('index', compact('user'));
    }
public function index ( ) { $ user = User :: find ( Auth :: id ( ) ) ; return view ( 'index' , compact ( 'user' ) ) ; }
Show the application dashboard.
Show the application dashboard .
// $notifications = new AlertNotification; // $notifications = $user->notifications; //dd(auth()->user()); // foreach ($user->notifications as $notification) { //     echo $notification->type; // } // dd($notifications);