コード例 #1
0
ファイル: mainController.php プロジェクト: EveLuty/codepi_tt
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $artistes = Artiste::all();
     $concerts = Concert::paginate(9);
     $villes = Concert::distinct()->select('Ville')->get();
     $tags = Artiste::distinct()->select('Tags')->get();
     return view('index', compact('artistes', 'villes', 'tags'));
 }