/** * Get notifications * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index() { $notifications = Notification::getNotifications(); return view('admin.notification', compact('notifications')); }