agregar detalles del encargado en listado de estandares
This commit is contained in:
parent
92d9d61d27
commit
2a3c96545d
@ -41,7 +41,7 @@ public function listEstandar()
|
||||
|
||||
public function listEstandarValores()
|
||||
{
|
||||
$estandaresNombreslist = Estandar::select('estandars.name', 'estandars.id', "estandars.id_user", "users.name as user_name", "users.lastname as user_lastname", "users.email as user_email")
|
||||
$estandareslist = Estandar::select('estandars.name', 'estandars.id', "estandars.id_user", "users.name as user_name", "users.lastname as user_lastname", "users.email as user_email")
|
||||
->orderBy('estandars.id', 'asc')
|
||||
->join('users', 'estandars.id_user', '=', 'users.id')
|
||||
->orderBy('estandars.id', 'asc')
|
||||
@ -49,7 +49,7 @@ public function listEstandarValores()
|
||||
return response([
|
||||
"status" => 1,
|
||||
"msg" => "!Lista de nombres de Estandares",
|
||||
"data" => $estandaresNombreslist,
|
||||
"data" => $estandareslist,
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
||||
//rutas estandar
|
||||
Route::post('estandar', [EstandarController::class, 'createEstandar']);
|
||||
Route::get('estandar', [EstandarController::class, 'listEstandar']);
|
||||
Route::get('estandar-valores', [EstandarController::class, 'listEstandarValores']);
|
||||
Route::get('estandar/{id}', [EstandarController::class, 'showEstandar'])->where('id', '[0-9]+');
|
||||
Route::put('estandar/{id}', [EstandarController::class, 'updateEstandar'])->where('id', '[0-9]+');
|
||||
Route::delete('estandar/{id}', [EstandarController::class, 'deleteEstandar'])->where('id', '[0-9]+');
|
||||
|
Loading…
Reference in New Issue
Block a user