/** * @return \Illuminate\View\View */ public function all_stations() { $stations = Station::all(); return view('pages.all_stations', ['stations' => $stations]); }
/** * @return \Illuminate\Database\Eloquent\Collection|static[] */ public function all() { return Station::all(); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $stations = Station::all(); return view('stations.index', compact('stations')); }