public function index() { $this->importar_rutas(); $acciones = Accion::with('modulos')->get(); //dd($acciones[10]->modulos[0]->nombre); return View::make('admin.acciones.index')->with('acciones', $acciones); }