app/Http/Controllers/BlogController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {
        $blogs = Blog::paginate(10);
        return view('alumnos.index', compact('blogs'));
    }
public function index ( Request $ request ) { $ blogs = Blog :: paginate ( 10 ) ; return view ( 'alumnos.index' , compact ( 'blogs' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//Con paginación //$alumnos = Blog::paginate(5); //al usar esta paginacion, recordar poner en el el index.blade.php este codigo  {!! $alumnos->links() !!}