app/Http/Controllers/ProfesorController.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()
    {
        $profesores=Profesor::orderBy('nombre')->orderBy('localidad')->paginate(5);
        return view('profesores.index',compact('profesores'));
    }
public function index ( ) { $ profesores = Profesor :: orderBy ( 'nombre' ) -> orderBy ( 'localidad' ) -> paginate ( 5 ) ; return view ( 'profesores.index' , compact ( 'profesores' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .