{"catalogRevision":"cat_726f873af6f566cc","recipeId":"page:blueprints:law-firms:client-portal:laravel","recipeRevision":"r1","canonicalPath":"/blueprints/law-firms/client-portal/laravel","label":"Law firms: client portal using Laravel","title":"How to build a client portal for law firms with Laravel on Ample","family":"Industry blueprint","summary":"A client portal blueprint for law firms built with Laravel on Ample. Domain schema: client_entities (name, entity_type, conflict_check_reference): clients with conflict-check status; matters (client_entity_id, practice_area, opened_at, closed_at, status): engagement periods as matters; document_requests (matter_id, title, due_at, status, uploaded_object_key): documents requested from the client; shared_documents (matter_id, title, object_key, authorized_role): documents released to authorized client contacts; document_access (document_id, principal_reference, role, granted_at): who may read which document. Public information: practice areas and attorney profiles, intake process and fee structure overview, office locations. Kept out of scope until handling is reviewed: privileged communications and case files, identity and financial documents, opposing-party information. Matter documents are privileged; the portal models per-matter authorization. Technical basis verified on Laravel: a role-to-document access model with negative tests (401 without identity, 403 for the wrong role) and a private-bucket round-trip for the allowed role (private=ok).","representativeQueries":["Law firms: client portal using Laravel","Where can I host Law firms: Client portal built with Laravel?","I need a genuinely specialized client portal workflow covering matter-based access separation and confidential document handling."],"breadcrumbIds":["discovery","industry","industry:professional-services","industry:law-firms","page:blueprints:law-firms:client-portal:laravel"],"breadcrumbs":[{"id":"discovery","label":"Agent hosting discovery","canonicalPath":"/discover/discovery","kind":"root"},{"id":"industry","label":"Industries and specialties","canonicalPath":"/discover/industry","kind":"facet"},{"id":"industry:professional-services","label":"Professional services","canonicalPath":"/discover/industry/professional-services","kind":"group"},{"id":"industry:law-firms","label":"Law firms","canonicalPath":"/discover/industry/law-firms","kind":"atom"},{"id":"page:blueprints:law-firms:client-portal:laravel","label":"Law firms: client portal using Laravel","canonicalPath":"/blueprints/law-firms/client-portal/laravel","kind":"recipe"}],"parentIds":["industry:law-firms","workload:client-portal","stack:framework-laravel","intent:deploy-web-app"],"parents":[{"id":"industry:law-firms","label":"Law firms","canonicalPath":"/discover/industry/law-firms","kind":"atom"},{"id":"workload:client-portal","label":"Client portal","canonicalPath":"/discover/workload/client-portal","kind":"atom"},{"id":"stack:framework-laravel","label":"Laravel","canonicalPath":"/discover/stack/framework-laravel","kind":"atom"},{"id":"intent:deploy-web-app","label":"Deploy web app","canonicalPath":"/discover/intent/deploy-web-app","kind":"atom"}],"resourceRequirements":["primitive:compute","primitive:postgres","primitive:s3-compatible-object-storage"],"infrastructureRequirements":[{"primitiveId":"primitive:compute","label":"Compute","canonicalPath":"/discover/primitive/compute","status":"verified","summary":"Apps run in isolated x86_64 Firecracker microVMs; sizes are the priced VM sizes."},{"primitiveId":"primitive:postgres","label":"Postgres","canonicalPath":"/discover/primitive/postgres","status":"verified","summary":"Managed PostgreSQL 16 with pgvector runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied."},{"primitiveId":"primitive:s3-compatible-object-storage","label":"S3-compatible object storage","canonicalPath":"/discover/primitive/s3-compatible-object-storage","status":"verified","summary":"Buckets speak the S3 API with SigV4 credentials Ample Computer issues; `ample bucket upload-url` returns a presigned upload URL. PutObject and GetObject are checked by canary."}],"framework":"Laravel","workload":"Client portal","industry":"Law firms","releaseStatus":"published","supportStatus":"verified","executionStatus":"ready","docsOnly":false,"prerequisites":["A Laravel project (composer install --no-dev from composer.lock, then FrankenPHP serving public/ (php-server with the index.php fallback) reading PORT on the php-8.5 template)","A PostgreSQL driver reading DATABASE_URL (auto-provisioned when omitted)","Bucket credentials from `ample bucket create` passed as encrypted S3_* environment variables","A review of which law firms data classes may be handled at all; this blueprint models public information only"],"testedConfiguration":{"template":"php-8.5","runtime":"php","size":"s-1vcpu-1gb","install":"composer install --no-dev --prefer-dist --no-interaction --no-progress --optimize-autoloader","start":"frankenphp php-server --listen :$PORT --root public"},"inputSchema":{"additionalProperties":false,"properties":{"env":{"description":"Encrypted environment variables","items":{"pattern":"^[A-Z][A-Z0-9_]*=.*$","type":"string"},"maxItems":50,"type":"array"},"name":{"description":"App name","maxLength":63,"minLength":1,"pattern":"^[a-z0-9-]+$","type":"string"},"path":{"description":"Project directory or ample.toml service","maxLength":512,"minLength":1,"type":"string"},"release_command":{"description":"Migration command run before activation","maxLength":512,"type":"string"}},"required":["env","name","path"],"type":"object"},"outputSchema":null,"workflowSteps":[{"title":"Model the law firms domain","body":"Create the tables client_entities, matters, document_requests, shared_documents, document_access. Clients with conflict-check status lives in client_entities; keep the sensitive classes (privileged communications and case files, identity and financial documents, opposing-party information) out of this schema."},{"title":"Workflow step 1","body":"Model client entities and engagement periods; every document belongs to one engagement"},{"title":"Workflow step 2","body":"Authorize by client entity and role before any storage access (401 without identity, 403 for the wrong client)"},{"title":"Workflow step 3","body":"Store documents in the private bucket and stream them through the app"},{"title":"Workflow step 4","body":"Deploy and verify the negative authorization tests and an authorized download"},{"title":"Deploy","body":"Run the synchronous deploy once and read the result. Re-running with no change is a no-op.","command":"ample deploy . --name <app-name> --public --env S3_ENDPOINT=... --env S3_REGION=... --env S3_BUCKET=... --env S3_ACCESS_KEY_ID=... --env S3_SECRET_ACCESS_KEY=..."},{"title":"Verify","body":"Run the pattern self-test(s) from the example (/p/private-document-library) and your own acceptance checks for the law firms workflow.","command":"ample logs <deployment_id> --kind build"}],"examples":[{"title":"Laravel pattern fixture","description":"Verified private document library basis for this blueprint.","sourceRef":"tests/deploy-canaries/laravel-patterns"}],"successChecks":[{"description":"app responds on its public URL","kind":"http_get","path":"/","expect":"ample canary laravel patterns"},{"description":"private-document-library self-test from the example","kind":"http_get","path":"/p/private-document-library","expect":"see the pattern fixture checks"}],"limitations":["The technical basis (private document library on Laravel) was verified with the pattern fixture; the law firms schema and workflow are an original design for this blueprint, built on that basis.","Matter documents are privileged; the portal models per-matter authorization.","Verified on the php-8.5 template at s-1vcpu-1gb.","Managed PostgreSQL 16 with pgvector.","Buckets speak the standard S3 API (PutObject and GetObject with path-style addressing are checked by the fixture); `ample bucket upload-url` returns presigned upload URLs."],"costEstimate":{"currency":"USD","monthlyAmount":10.0,"authoritative":true,"basis":"size prices from pricing.toml (loaded by the API) at build revision 3a3dfe06151688a20d397caac2aa66e562c23eb0","components":[{"name":"app server","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0},{"name":"managed PostgreSQL database","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0}],"note":"Upper-bound monthly price of the tested sizes. Buckets are allocation-priced per quota and not included."},"evidenceSummary":[{"kind":"canary_run","summary":"Laravel pattern fixture deployed on Ample (composer install --no-dev from composer.lock, then FrankenPHP serving public/ (php-server with the index.php fallback) reading PORT on the php-8.5 template); the private document library checks passed: a role-to-document access model with negative tests (401 without identity, 403 for the wrong role) and a private-bucket round-trip for the allowed role (private=ok). The blueprint's Law firms schema and workflow below build on that verified basis.","observedAt":"2026-11-06T06:00:29Z","implementationRevision":"5e3f3dc4c9a9","expiresAt":"2027-05-05T06:00:29Z","scope":{"checks":["/p/private-document-library"],"pattern":"pattern:private-document-library","template":"php-8.5"}}],"lastVerifiedAt":"2026-11-06T06:00:29Z","mcpBinding":{"registryRef":"mcp:ample_deploy","toolName":"ample_deploy","schemaHash":"0802c329be823fa0695460cf73206d47a6fa0efa57417c386c34b6614a92ea5f","observedAt":"2026-11-06T06:16:17.558478534+00:00","implementationRevision":"4558e9477d09","requiredScopes":["servers:write","databases:read","buckets:read"],"bindingState":"current"},"unknowns":[],"formats":{"html":"https://ample.computer/blueprints/law-firms/client-portal/laravel","markdown":"https://ample.computer/blueprints/law-firms/client-portal/laravel.md","json":"https://api.ample.computer/v1/catalog/recipes/page%3Ablueprints%3Alaw-firms%3Aclient-portal%3Alaravel"},"nextActions":[{"actionId":"browse-catalog","label":"Browse the catalog index","operationId":"catalog_index","method":"GET","relativePath":"/v1/catalog","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"search-recipes","label":"Search published recipes by intent, stack and constraints","operationId":"search_recipes","method":"POST","relativePath":"/v1/catalog/search","origin":"api","parameters":{"body":{"limit":5,"query":"Law firms: client portal using Laravel"}},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"plan:page:blueprints:law-firms:client-portal:laravel","label":"Prepare a side-effect-free deployment plan for an authorized project","operationId":"plan_deployment","method":"POST","relativePath":"/v1/catalog/plan","origin":"api","parameters":{"body":{"inputs":{},"projectId":"<workspace or server id you own>","recipeId":"page:blueprints:law-firms:client-portal:laravel","recipeRevision":"r1"}},"requiresAuthentication":true,"requiresApproval":false},{"actionId":"auth-setup","label":"Read the existing agent authentication setup","operationId":"existing_auth_setup","method":"GET","relativePath":"/mcp/setup","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:industry:law-firms","label":"Browse Law firms","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/industry%3Alaw-firms","origin":"api","parameters":{"nodeId":"industry:law-firms"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:workload:client-portal","label":"Browse Client portal","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/workload%3Aclient-portal","origin":"api","parameters":{"nodeId":"workload:client-portal"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:stack:framework-laravel","label":"Browse Laravel","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/stack%3Aframework-laravel","origin":"api","parameters":{"nodeId":"stack:framework-laravel"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:intent:deploy-web-app","label":"Browse Deploy web app","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/intent%3Adeploy-web-app","origin":"api","parameters":{"nodeId":"intent:deploy-web-app"},"requiresAuthentication":false,"requiresApproval":false}]}