示例#1
0
 public function getIndex()
 {
     $lastWebinar = Webinar::where('date_time', '<', Carbon::now())->orderBy('id', 'desc')->first();
     $nextWebinars = Webinar::where('date_time', '>', Carbon::now())->get();
     $groups = FacebookGroup::all();
     return view('index/home', ['last_webinar' => $lastWebinar, 'next_webinars' => $nextWebinars, 'groups' => $groups]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $groupList = FacebookGroup::all();
     return view('fbgroup.index', compact('groupList'));
 }