/** * Display a listing of the resource. * * @return Response */ public function index() { $enfants = Enfant::with('classe')->paginate(20); $enfants->setPath('enfants'); return view('enfants.listeEnfants', compact('enfants')); }