/** * Get users collection paginate. * * @param int $n * @param string $role * @return Illuminate\Support\Collection */ public function index($filiere_id = null) { $etudiants = Etudiant::get(); if ($filiere_id) { $etudiants->where('filiere_id', $filiere_id); } return $etudiants; }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Etudiant::get(); }
public function show() { $etudiants = Etudiant::get(); return view('etudiant-cv.show', compact('etudiants')); }