/** * Display a listing of the resource. * * @return Response */ public function index() { $estudiante = Estudiante::with('curso')->paginate(5); return view('estudiantes.index', compact('estudiante')); }