示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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'));
 }