Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $dataView = array();
     $dataView['page_title'] = "Eventos";
     $dataView['events'] = event::all();
     return view('event.index', $dataView);
 }
 public function logout()
 {
     //
     Auth::logout();
     // logout user
     return Redirect::to('/')->with('events', event::all())->with('allDayEvent', allDayEvent::all());
     //redirect back to login
 }
Example #3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     //
     return view('admin.event.create')->with('event', event::all());
 }
Example #4
0
 /**
  * Show the application welcome screen to the user.
  *
  * @return Response
  */
 public function index()
 {
     return view('index')->with('events', event::all())->with('allDayEvent', allDayEvent::all());
 }