/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $dataView = array(); $dataView['page_title'] = "Lugares de encuentro"; $dataView['venues'] = Venue::all(); return view('venue.index', $dataView); }
public function run() { $venues = Venue::all(); //$features = Feature::all()->toArray(); foreach ($venues as $venue) { $venue->features()->attach([1, 2, 3]); //$this->command->info('Creating '.$venue['name']); } }
function show() { $venues = Venue::all(); $select_timings = Timing::lists('artist_name', 'artist_name'); $title = "Plan by Time"; $user = Auth::user(); $already_selected_timings = []; // if logged in then set this to an actual array if ($user !== null) { $already_selected_timings = $user->timings->lists('artist_name', 'artist_name')->toArray(); } return view('bytime', compact('venues', 'select_timings', 'already_selected_timings', 'title')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $venues = Venue::all(); return view('venues.index', compact('venues')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $venues = Venue::all(); return $venues; }
public function selectMall() { $venues = Venue::all(); return view('select_mall')->with('venues', $venues); }