Documentacion de la api en el readme
This commit is contained in:
@@ -32,7 +32,7 @@ class UsuariosController extends Controller {
|
||||
|
||||
return response()->json([
|
||||
'pagination' => $paginate,
|
||||
'data' => array_values(Usuario::all()->skip($paginate['from'] - 1 )->take($paginate['per_page'])->all())
|
||||
'data' => array_values(Usuario::with('restaurantes')->skip($paginate['from'] - 1 )->take($paginate['per_page'])->get()->all())
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user