/** * Display a listing of the resource. * * @return Response */ public function index() { $matieres = Matiere::all(); return View('app/gestion_cours', ['matieres' => $matieres]); }
public function index_api() { return Matiere::all(); }
public function getAll() { return Matiere::all(); }