app/Http/Controllers/Admin/EmpresaController.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()
    {
        $empresas = Empresa::orderBy('nombre')->paginate(50);
        return view('empresa.index', compact('empresas'));
    }
public function index ( ) { $ empresas = Empresa :: orderBy ( 'nombre' ) -> paginate ( 50 ) ; return view ( 'empresa.index' , compact ( 'empresas' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .