feat: add multi-tenant controllers for catalog and tenant management and implement pagination macro in AppServiceProvider
This commit is contained in:
@@ -19,7 +19,7 @@ class TenantController extends Controller
|
||||
|
||||
public function index(): JsonResponse
|
||||
{
|
||||
return TenantResource::collection(Tenant::query()->with(['headerLogo', 'footerLogo'])->latest()->get())->response();
|
||||
return TenantResource::collection(Tenant::query()->with(['headerLogo', 'footerLogo'])->latest()->paginateFromRequest())->response();
|
||||
}
|
||||
|
||||
public function store(StoreTenantRequest $request): JsonResponse
|
||||
|
||||
Reference in New Issue
Block a user