/** * Display a listing of the resource. * * @return Response */ public function index() { $departamentos = Departamento::all(); return view('solo.departamentos.index', compact('departamentos')); }
/** * Returns all Departamentos * * @return \Illuminate\Database\Eloquent\Collection|static[] */ public function all() { return Departamento::all(); }