A client portal sounds like one feature. In practice it is four: a login for people outside your team, a place for their files, a view of their invoices, and a way to raise and follow support tickets. Each one is easy on its own. The hard part is the rule that ties them together: a client must only ever see their own data.
Here is the quick answer. Build the portal as a separate area with its own role, its own routes and its own permissions, and scope every query to the logged-in client. In Laravel that means a client role, a route group, policies on every model, a private disk for files, Stripe or your own records for invoices, and a ticket model that belongs to a client. Lara Dashboard gives you the login, roles, settings, modules and hooks out of the box. You still write the portal screens and the scoping rules yourself.
A quick disclosure. We build Lara Dashboard, so we use it in the examples. Everything we say about it below was checked against the GitHub repository (v1.5.0, develop branch) in November 2026. Where a part is not in core, we say so.
A client portal is four features and one rule
Before you write code, write the rule down: every portal query starts from the logged-in client. Not from an ID in the URL. Not from a hidden form field. From
auth()->user().Most portal leaks come from one missed spot. A download route that takes a file ID and never checks the owner. An invoice page that loads by number. A ticket list that forgets a
where clause. One gap is enough to show one client another client's contract.So the plan below repeats the same pattern four times. Give the client a role. Give the feature a permission. Load records through the client relation. Check a policy before you show or send anything.
If you want the deeper theory on separating staff and portal roles, read our guide to role-based access for client portals. This post is the build plan that sits on top of it.
Logins: give clients their own role, never a staff role
Clients should log in with the same auth system as staff, but land in a different place and hold different permissions. Laravel makes this simple. Lara Dashboard already has the pieces wired.
Registration is off by default. Public sign-up is controlled by the
auth_enable_public_registration setting, and the default is off. For most agencies that is right. You invite clients, you don't let strangers sign up.New users get a default role. When registration is on, new users get the role in the
auth_default_user_role setting, which defaults to Subscriber. Core also seeds a Contact role. Both start with only dashboard and profile permissions. That is a safe base for a portal role.You can change the flow with hooks. The register controller runs the
filter.auth.register.default_role filter, so a module can assign a Client role instead. After login, the redirect path passes through filter.auth.login.redirect_path. That lets you send clients to /portal and staff to /admin.Social login is ready if you want it. The config has entries for Google, GitHub, Facebook, Twitter and LinkedIn through Socialite. Most B2B portals skip this and use email and password with verification. The admin routes already require a verified email.
Our advice: create a dedicated Client role with only portal permissions. Don't reuse Subscriber if your public site also uses it. Two-factor login is not in Lara Dashboard core today, so if your clients need it, plan a package or module. Our post on auth and session security covers the options.
Build the portal as a module, not inside core
Keep the portal out of the core codebase. Put it in a module. Then core upgrades don't touch your portal code, and you can reuse the module on the next client project.
Lara Dashboard modules are built on nwidart/laravel-modules. The scaffold command is
php artisan module:make ClientPortal. Then php artisan module:make-crud ClientPortal --model=ClientFile --fields="title:string,file:media" generates a model, controller, service, form request, datatable and views for the staff side. Our step-by-step guide to building a Laravel module walks through each command.Register portal permissions from the module's service provider with the
filter.permission.groups hook. Use names that say who they are for, such as portal.access, portal.files.view, portal.invoices.view and portal.tickets.create. Give them to the Client role only. Staff get their own permissions for the admin side. Our post on hooks and filters shows the pattern.Then add a route group for the portal, such as
Route::middleware(['auth', 'verified', 'can:portal.access'])->prefix('portal'). Keep these routes outside /admin. Clients get a small, clean layout with four menu items, not the whole admin sidebar.Files: use a private disk and check the owner on every download
Client files are the riskiest part of a portal. Contracts, reports and designs should never sit on a public disk with a guessable URL.
Store them privately. Use the
local disk outside public/, or a private S3 bucket. Laravel's filesystem docs cover both. Lara Dashboard's media library is built on spatie/laravel-medialibrary, which can store files on any disk you configure.Serve them through a controller. The download route loads the file through the client, such as
$request->user()->clientFiles()->findOrFail($id). If the file isn't theirs, the query finds nothing and returns a 404. Add a policy check with $this->authorize('view', $file) for a second layer. See Laravel's authorization docs for policies.On S3, use short-lived links. After the checks pass, redirect to
Storage::disk('s3')->temporaryUrl($path, now()->addMinutes(5)). The link expires, so a forwarded email doesn't leak the file for good.Log each download. A simple table with user, file and time is enough. When a client asks "who opened this?", you have an answer.
Invoices: show Stripe's or keep your own, but decide early
Invoices are where teams over-build. You have two sane paths.
Path 1: Stripe is the source of truth. If you bill through Stripe, Laravel Cashier can list a customer's invoices with
$user->invoices() and return a PDF with $user->downloadInvoice($invoiceId). See the Cashier billing docs. Lara Dashboard's composer.json already requires laravel/cashier, but core has no invoice screens. You add the Billable trait and the portal page yourself.Path 2: your accounting tool is the source of truth. If invoices come from an accounting system, don't rebuild invoicing. Store a small invoice record (number, amount, status, due date) and the PDF on the private disk. Then show them with the same owner checks as other files.
Don't mix the two. A portal that shows Stripe invoices for some clients and uploaded PDFs for others confuses everyone, including your support team.
Tickets: keep support threads attached to the client
A ticket area lets clients raise issues without email chains. The data model is small: a ticket belongs to a client, has a status and a priority, and has replies. Replies can be public or internal notes that clients never see.
If you use the Lara Dashboard CRM module, it already manages contacts, tickets and replies on the staff side. Our CRM module tour shows the screens. The CRM module is a separate module, not part of the free core. Check its documentation for what it shows to contacts before you plan your portal screens around it.
Core also includes inbound email processing over IMAP. The
php artisan email:process-inbound command fetches mail and passes it to handlers, and the CRM module registers a handler that turns email replies into ticket replies. So clients can answer a ticket from their inbox, and the reply still lands on the right thread.Two rules for portal tickets. Never show internal notes in the client view, so filter them in the query, not the template. And load tickets through the client relation, just like files.
What you get and what you build
| Portal feature | In Lara Dashboard core | You build or add |
|---|---|---|
| Client login and roles | Login, registration toggle, default role, roles and permissions UI, email verification | A Client role, a login redirect to the portal |
| Portal area | Modules, CRUD generator, permission and menu hooks | The portal module, routes and layout |
| Files | Media library on spatie/laravel-medialibrary | Private disk, owner-scoped downloads, policies |
| Invoices | laravel/cashier as a dependency, no invoice screens | Billable setup or invoice records, portal page |
| Tickets | Inbound email processing | CRM module or your own ticket model, client views |
| Support access | "Login as" impersonation with a permission | A rule for when staff may use it |
Trade-offs and when not to use Lara Dashboard for a portal
Lara Dashboard is a good base when your portal sits next to a site you also manage: a blog, landing pages, forms and a small team admin. You get one login system and one place for content and clients.
It is the wrong base in some cases. Be honest with yourself about these:
- You need a portal inside an existing Laravel app. Lara Dashboard is a full application, not a package you drop in.
- Each client needs a separate database or domain. That is tenancy, and you need a tenancy package and a different design.
- Your clients require 2FA on day one and you have no time to add it.
- You want a no-code portal product. A hosted portal tool will be faster to launch.
- Your team is already deep in Filament and only needs a few client pages.
For the tenancy question, our post on multi-tenant SaaS in Laravel explains when a shared database stops being enough.
Self-check before you launch the portal
Run this list with a second developer. Each item should be a clear yes.
- Clients have their own role, with no staff permissions.
- Portal routes live outside the admin prefix.
- Every portal query starts from the logged-in user.
- Every model a client can see has a policy.
- Client files sit on a private disk, never in the public folder.
- Downloads go through a controller that checks the owner.
- S3 links expire within minutes.
- Internal ticket notes are filtered out in the query.
- Invoices come from one source of truth.
- A test logs in as client A and fails to open client B's file, invoice and ticket.
- Public registration is off, unless you really want self sign-up.
- Staff use of "login as" is logged and has a written rule.
Item 10 matters most. Write that test first. If it passes for files, invoices and tickets, most of the dangerous bugs are already gone.
Verdict
A Laravel client portal is not hard to build. It is easy to build with a leak. The fix is boring and reliable: a separate role, a separate route group, client-scoped queries, policies, a private disk, and one test that tries to break in.
Lara Dashboard saves you the login, roles, settings, module system and admin screens, so your time goes into the portal itself. If that matches your next client project, try Lara Dashboard and build the portal as your first module.
FAQ
Do I need a separate guard for client users?
Usually not. One
web guard with separate roles and permissions is simpler and works well. Use a second guard only if clients live in a different table or need a fully separate session.Can clients sign up on their own?
Yes. Turn on public registration in the auth settings and set the default role. For agency portals we suggest invites instead, so only real clients get accounts.
Does Lara Dashboard include invoicing?
No. Core requires laravel/cashier but ships no invoice screens. Use Cashier with Stripe, or store invoice records and PDFs from your accounting tool and show them in the portal.
Where should client files be stored?
On a private disk: local storage outside the public folder, or a private S3 bucket. Serve them through a controller that checks ownership, and use temporary URLs on S3.
Can clients reply to tickets by email?
Yes, with the CRM module. Core processes inbound email over IMAP, and the CRM module registers a handler that adds email replies to the matching ticket.
Is a client portal the same as multi-tenancy?
No. A portal scopes data by client inside one app and one database. Tenancy gives each customer their own data space, often with a separate database or domain. Many portals never need tenancy.