Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show(City $city, User $user)
 {
     $events = Event::futureEventsByCityId($city->id)->where('user_id', '=', $user->id)->get();
     return view('users.show', compact('city', 'user', 'events', 'event') + ['event' => null]);
 }
Example #2
0
 /**
  * Display the specified resource.
  *
  * @param Event $event
  *
  * @return \Illuminate\Http\Response
  */
 public function show(City $city, Event $event)
 {
     $events = Event::futureEventsByCityId($city->id)->get();
     return view('events.index', compact('city', 'events', 'event'));
 }