/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { //$pro = new Projet; $projet = Projet::all(); return view('projet/liste', ['projets' => $projet]); }
public function projetListe() { $projets = Projet::all(); return view('pages/projets', ['projets' => $projets]); }