/** * Show the application dashboard to the user. * * @return Response */ public function Home() { $courses = $this->course->getPaginated(6); $notification = \Model\Notification\Notification::orderBy('end_date')->where('start_date', '<=', date('Y-m-d 23:59:59'))->where('end_date', '>=', date('Y-m-d 00:00:00'))->first(); // return redirect()->route('front.courses'); return view('Front::landing', ['courses' => $courses, 'notification' => $notification]); }
public function destroy(Notification $notification) { $notification->delete(); return redirect()->route('admin.notification.index'); }