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