Merge branch 'master' of https://github.com/csullcap/PIS-proyect
This commit is contained in:
commit
d7531dafb1
@ -63,7 +63,7 @@ public function listUser(){
|
||||
}
|
||||
|
||||
public function listUserHabilitados(){
|
||||
$users = User::whereNotNull("name")->where("estado",true)->get();
|
||||
$users = User::whereNotIn("name",["null"])->where("estado",true)->get();
|
||||
foreach ($users as $user) {
|
||||
$user->rol=User::find($user->id)->roles[0]->name;
|
||||
}
|
||||
|
@ -34,8 +34,6 @@
|
||||
Route::get('estados', [EstadosValoresController::class, 'listEstadosValores']);
|
||||
//Estandares valores
|
||||
Route::get('estandares', [EstandarController::class, 'listEstandarValores']);
|
||||
Route::get('user', [UserController::class, 'listUser']);
|
||||
|
||||
|
||||
Route::middleware("auth:sanctum")->group(function () {
|
||||
//Rutas de Auth
|
||||
@ -45,8 +43,10 @@
|
||||
Route::get('user-profile', [UserController::class, 'userProfile']);
|
||||
Route::put('update', [UserController::class, 'updateRoleEstado']);
|
||||
Route::post('register', [UserController::class, 'register']);
|
||||
Route::get('user', [UserController::class, 'listUser']);
|
||||
Route::get('enabled_users', [UserController::class, 'listUserHabilitados']);
|
||||
|
||||
|
||||
//rutas estandar
|
||||
Route::post('estandar', [EstandarController::class, 'createEstandar']);
|
||||
Route::get('estandar', [EstandarController::class, 'listEstandar']);
|
||||
|
Loading…
Reference in New Issue
Block a user