/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $notifications = \App\Models\Notification::orderBy('created_at', 'DESC')->where('user_id', \Auth::user()->id)->where("has_read", "=", "No")->get(); return view('notifications', ['notifications' => $notifications]); }