feat: add multi-tenant controllers for catalog and tenant management and implement pagination macro in AppServiceProvider

This commit is contained in:
2026-06-29 09:02:39 -03:00
parent 31b65eb676
commit 4125d8353d
8 changed files with 24 additions and 8 deletions

View File

@@ -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