/** * Display a listing of the resource. * * @return Response */ public function index() { $proyectos = Proyecto::with('urg')->with('tipoProyecto')->get(); return view('admin.proyectos.index', compact('proyectos')); }