agregar detalles del encargado en listar estandares
This commit is contained in:
parent
8e68ba9132
commit
92d9d61d27
@ -41,7 +41,9 @@ public function listEstandar()
|
|||||||
|
|
||||||
public function listEstandarValores()
|
public function listEstandarValores()
|
||||||
{
|
{
|
||||||
$estandaresNombreslist = Estandar::select('estandars.name', 'estandars.id')
|
$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")
|
||||||
|
->orderBy('estandars.id', 'asc')
|
||||||
|
->join('users', 'estandars.id_user', '=', 'users.id')
|
||||||
->orderBy('estandars.id', 'asc')
|
->orderBy('estandars.id', 'asc')
|
||||||
->get();
|
->get();
|
||||||
return response([
|
return response([
|
||||||
@ -51,7 +53,6 @@ public function listEstandarValores()
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function showEstandar($id)
|
public function showEstandar($id)
|
||||||
{
|
{
|
||||||
if (Estandar::where("id", $id)->exists()) {
|
if (Estandar::where("id", $id)->exists()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user