You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1022 B
34 lines
1022 B
<?php |
|
|
|
use App\Models\Empresas; |
|
use App\Models\Grupos; |
|
use App\Models\Roles; |
|
use App\Models\User; |
|
use Illuminate\Http\Request; |
|
|
|
|
|
Route::get('/obtener_empresas', function (Request $request) { |
|
return Empresas::where('activo',1)->get(); |
|
}); |
|
|
|
|
|
// Route::get('/obtener_lista_tareas_usuarios', function (Request $request) { |
|
// return User::with('datosEmpleado','roles')->where('users.eliminado',0)->get(); |
|
// }); |
|
|
|
// Route::get('/detalle_usuario', function (Request $request) { |
|
// // dd( $request->id ); |
|
// return User::with('datosEmpleado')->where('users.eliminado',0)->where('id',$request->id)->first(); |
|
// }); |
|
|
|
|
|
// Route::get('/lista_roles', function (Request $request) { |
|
// return Roles::where('activo',1)->get(); |
|
// }); |
|
|
|
|
|
// Route::get('/lista_grupos', function (Request $request) { |
|
|
|
// return Grupos::select('grupos.id','grupos.name','grupos.activo','grupos.created_at','grupos.updated_at') |
|
// ->where('grupos.activo',1)->where('grupos.eliminado',0)->get(); |
|
// });
|
|
|