コード例 #1
0
 /**
  * @return \Illuminate\View\View
  */
 public function all_stations()
 {
     $stations = Station::all();
     return view('pages.all_stations', ['stations' => $stations]);
 }
コード例 #2
0
ファイル: StationRepository.php プロジェクト: dericcain/psa
 /**
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function all()
 {
     return Station::all();
 }
コード例 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $stations = Station::all();
     return view('stations.index', compact('stations'));
 }