Correccion query servicios en controlador

parent 49529ce1
......@@ -48,7 +48,7 @@ class UserController extends Controller
*/
public function create()
{
return view('user.create', ['roles' => Role::get(), 'activities' => Service::get()]);
return view('user.create', ['roles' => Role::get(), 'activities' => Service::where('status', true)->get()]);
}
/**
......@@ -109,7 +109,7 @@ class UserController extends Controller
return view('user.edit', [
'user' => $user,
'roles' => Role::get(),
'activities' => Service::get(),
'activities' => Service::where('status', true)->get(),
'actividadAsociada' => $actividad
]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment