Open-sourcing Lara Dashboard: decisions behind a Laravel admin CMS

Every Laravel project rebuilds the same admin: users, roles, settings, posts, logs. Here are the architecture decisions behind Lara Dashboard, the open-source TALL-stack CMS I founded, and what each one costs.

In short

  • The problem: Almost every Laravel product spends its first weeks rebuilding the same admin panel: login, users, roles, settings, content, logs. That is weeks of budget spent on work no customer will ever notice.
  • What I do about it: I founded Lara Dashboard, an open-source admin and CMS for Laravel built on the TALL stack (Tailwind, Alpine.js, Laravel, Livewire), with a module system, standard permissions and WordPress-style hooks. This post explains the decisions behind it and the price of each.
  • Who this is for: Laravel teams choosing an admin foundation, and hiring managers who want to see how I make and defend platform decisions in public.

The pattern is familiar to anyone who has started a few Laravel projects. Week one is exciting: the domain model, the first real feature. Then someone asks who can log in, who can edit what, where the settings live, how to reset a password, how to see what an admin changed last Tuesday. None of that is the product, and all of it has to exist before anyone can use the product.

I built Lara Dashboard so that this layer stops being rebuilt per project. Open-sourcing it changed the problem. Code that runs one project only has to be right for that project. Code that other people install, extend and upgrade has to be right for situations you will never see. Every decision below is shaped by that second constraint.

The goal is a foundation, not a framework

The first decision was scope. Lara Dashboard ships the parts every admin needs and keeps them boring: authentication, users and roles, a settings panel, posts and pages, a media library, email configuration, translations, action logs, and monitoring through Laravel Pulse and Telescope. It is a normal Laravel application you clone and own, not a package you configure from the outside.

That matters for the reader deciding whether to adopt it. A package that wraps your app hides decisions behind its own API, and the day you need something it did not plan for, you are fighting it. A starter application hands you the code. You can read the controller that saves settings and change it.

The cost is upgrades. When you own the code, pulling improvements from upstream is a merge, not a composer update. I accept that because the audience is teams building products, and those teams eventually customize everything. The module system below is how I keep most customization out of the core files, so that merge stays small.

Modules keep the core small and the features optional

Lara Dashboard uses nwidart/laravel-modules, the established module package for Laravel. Each module is a self-contained folder with its own routes, migrations, views, Livewire components and service provider, and it can be enabled, disabled or uploaded from the admin UI or from Artisan.

The reason is the one I gave when announcing the project: install only what you need. A course platform needs course management; an internal tool does not. If every feature lives in core, every project pays for every feature in boot time, in migrations it never runs, and in surface area it has to secure.

Modules also create a clear line for contributors. Core changes need careful review because everyone inherits them. A new module can move faster because it only affects people who enable it. The core project stays free under the MIT license, and the same boundary is what lets premium modules such as CRM and HRM exist without bending the core around them.

For the module author, the first CRUD should not take a day. Lara Dashboard adds a generator on top of the module tooling:

php artisan module:make-migration create_products_table Shop
php artisan module:make-crud Shop --migration=create_products_table

That produces the model, a sortable and searchable datatable, the index, show, create and edit Livewire components, Blade views with breadcrumbs, routes and a sidebar entry. Generated code is a starting point, not a contract. I would rather a module author delete half of it than write all of it by hand.

Permissions use the package Laravel developers already know

Roles and permissions are built on spatie/laravel-permission. I did not write a custom permission system, and that was deliberate.

A custom permission layer is one of the easiest things to get subtly wrong and one of the most expensive things to be wrong about. Spatie's package is widely used, well documented, and familiar to most Laravel engineers. A new contributor already knows $user->can('post.edit') and role middleware. That familiarity is worth more than any feature I could add by owning the code.

On top of it, Lara Dashboard adds grouped permissions so the role editor stays readable as modules add their own, multi-role users, and admin impersonation for support. Every module registers its permissions in the same way, so a superadmin sees one consistent screen instead of a different access model per feature. The authorization rules in controllers and Livewire components then follow the same patterns I describe in Laravel policies, gates and form requests: checks live in policies and middleware, not in scattered if statements.

WordPress-style hooks make extension possible without forking

The decision most people ask about is the hook system. Lara Dashboard has actions and filters in the WordPress sense, implemented with the Eventy package (tormjens/eventy). Core code announces points where others may react or change a value; modules register callbacks with a priority.

use TorMorten\Eventy\Facades\Events as Eventy;

// Hook names here are illustrative.

// Core: let modules add items before the sidebar renders.
$menu = Eventy::filter('admin.sidebar.menu', $menu);

// Module service provider: add an entry, priority 20.
Eventy::addFilter('admin.sidebar.menu', function (array $menu) {
    $menu[] = ['label' => __('Products'), 'route' => 'admin.shop.products.index'];
    return $menu;
}, 20, 1);

Why not only use Laravel's own events? Laravel events are good at "this happened, react to it". They are not designed for "here is a value, give me back a changed one", which is exactly what an extensible admin needs: add a menu item, add a column to a table, change a settings form, adjust what a dashboard card shows. Filters express that directly.

The other reason is the audience. A large share of PHP developers learned extensibility from WordPress, me included, after years on Dokan, WP ERP and SureCart. add_filter and do_action are muscle memory for them. Offering the same mental model lowers the cost of writing a first module.

Livewire and Blade by default, React only where it earns it

The admin screens are Livewire components with Blade, Tailwind and Alpine. The page and email builders are the exception: they use React, because a drag-and-drop block editor is a heavily interactive client-side application and Livewire's round trips are the wrong tool for it.

That split follows a rule I apply on client projects too. Forms, tables, filters and settings are server-rendered problems. They read and write database rows, need authorization on every request, and benefit from having one language and one place for logic. Livewire keeps that in PHP, which means a Laravel developer can build a full module without a separate frontend build or API layer.

A visual builder is different. Its state lives in the browser, it updates on every drag, and it needs a rich component ecosystem. Forcing it into Livewire would produce a slower, worse editor. Using React there, and only there, keeps the cost of a JavaScript toolchain contained to the one feature that needs it.

Distribution has to work for people who cannot run Composer

A surprising amount of open-source design is about installation. The standard install is the usual Laravel routine: clone, copy .env, composer install, npm install, migrate and seed. That covers developers.

It does not cover the agency handing an admin panel to a client on shared hosting, which is a real and common situation. For that case Lara Dashboard includes a distribution ZIP builder that bundles the vendor dependencies, so the result can be uploaded without Composer on the server, plus a root entry point for cPanel-style hosting. Docker through Sail and the usual VPS or managed-hosting paths are supported too.

This is the WordPress lesson again. A large part of WordPress's reach comes from the fact that installing it does not require a terminal. A Laravel admin will never be that simple, but every step removed from installation is a team that actually tries the project.

Open source is an ongoing maintenance commitment

Publishing the code was the easy part. Keeping it healthy is the work: reviewing contributor pull requests, keeping the upgrade path clear as Laravel releases new versions, and saying no to features that belong in a module rather than in core.

Two practices do most of that work. First, quality checks are automated so review can focus on design. The project runs Pint for style, PHPStan with Larastan for static analysis, Rector, and an automated test suite, all behind one Composer script. A contributor gets the same feedback a maintainer would give before anyone reads the diff. Second, the core boundary is defended in review. Most "please add X" requests are better answered with "here is the hook, build it as a module." That keeps the core small enough that one person can still understand all of it.

Trade-offs: where this design does not fit

I would not recommend Lara Dashboard, or this shape of project, in every case.

  • If you want a package, not an app. Teams that want to drop an admin into an existing Laravel codebase and keep upgrading through Composer are better served by a package-based admin builder such as Filament. Owning the application is the point of Lara Dashboard, and it is also the cost.
  • Hooks trade traceability for extensibility. Filters registered from many modules can make "why does this menu look like that?" hard to answer, the same problem I describe for Laravel listeners in Event-driven Laravel. Named hooks, documented in one place, and a small number of them, are the only defense.
  • Modules are not isolation. A module runs in the same process with the same database. A badly written module can still slow down or break the whole admin. The module boundary helps organization and review; it is not a security sandbox.
  • Two frontend stacks are a real cost. Livewire plus React means two sets of skills for contributors who work on the builder. I accept it because the alternative is a worse editor, but a smaller project should pick one.
  • A starter app is a fork you maintain. Once you have customized core files heavily, upstream updates become manual. Keep customizations in your own modules and you keep that cost low.

What I check when choosing an admin foundation for a Laravel product

  1. Do we want to own the admin code, or consume it as a package we upgrade through Composer?
  2. Does the permission system use a standard package our engineers already know, or something custom we will have to learn and audit?
  3. Can features be added as isolated modules or plugins without editing core files?
  4. Is there a clear extension mechanism for changing values and UI, not just reacting to events?
  5. Does the frontend approach match the team: server-rendered by default, a heavy client stack only where interaction demands it?
  6. Can it be installed in every environment we actually deploy to, including the awkward ones?
  7. Are style, static analysis and tests automated, so contributions are checked before review?
  8. Who maintains it, and is there a clear upgrade path for the next Laravel major version?

The decisions behind Lara Dashboard all come from one idea: the admin layer of a Laravel product should be a solved problem you own, not a project you restart every time. That means standard tools where the problem is already well solved, such as permissions and modules, custom work only where Laravel leaves a gap, such as filters and installation, and a firm line around what belongs in core. Whether you adopt Lara Dashboard or build your own, those are the questions worth answering before the first line of admin code. If you are structuring the rest of the application around it, structuring a Laravel SaaS for its first three engineers covers the next layer.