Ejemplo n.º 1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $events = Event::paginate(5);
     return view('events.index', compact('events'));
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $list = Event::paginate(10);
     return view('event.list', compact('list', $list));
 }
 public function index()
 {
     $events = Event::paginate(5);
     //latest()->get(); //latest data on top
     return view('participants.index', compact('events'));
 }
Ejemplo n.º 4
0
 public function manage()
 {
     $events = Event::paginate(5);
     return view('events.manage', compact('events'));
 }