Laravel UI
Bootstrap, Vue, and React front-end scaffolding for Laravel applications
Repository Health
Technical Analysis
Laravel UI is the official Composer package that provides Laravel’s legacy front-end scaffolding presets. A single php artisan ui command generates Bootstrap, Vue, or React starter assets, along with an optional --auth flag that scaffolds full login, registration, and password-reset views and controllers wired to Laravel’s authentication system.
While the Laravel documentation now points new projects toward Breeze or Jetstream for a more modern starting point, Laravel UI remains actively maintained for existing applications built on it and for developers who want the older, minimal Bootstrap/Vue/React scaffolding without a full starter-kit’s opinions.
What You Get
- A
php artisan ui {bootstrap|vue|react}command that copies preset-specific stubs intoresources/jsandresources/sass, and updatespackage.json - An
--authflag that additionally scaffolds login, registration, password-reset, and email-verification Blade views plus the matching auth routes and controllers - A macroable
UiCommandclass so custom presets (e.g. Next.js) can be registered via a service provider - A dedicated
Laravel\Ui\Authroute/controller layer (AuthRouteMethods,ControllersCommand) separate from the presets themselves
Common Use Cases
- Adding classic server-rendered Bootstrap authentication views to a fresh Laravel install
- Scaffolding a minimal Vue or React starting point without adopting a full starter kit like Jetstream
- Maintaining legacy Laravel applications originally built on Laravel UI’s auth scaffolding
- Registering a custom scaffolding preset (e.g. a company’s internal frontend stack) via the macroable command
Under The Hood
Architecture — The package’s entry point is UiServiceProvider, which registers the ui Artisan command (UiCommand) and, when auth scaffolding is requested, the ui:auth command (AuthCommand) and ui:controllers command (ControllersCommand). UiCommand dispatches to one of three Presets\{Bootstrap,Vue,React} classes, each a thin static install() method that copies stub files from src/Presets/*-stubs and src/Auth/*-stubs into the consuming application’s resources/ tree and merges preset dependencies into package.json. The command is deliberately macroable (Command::macro), letting other packages or a project’s own service provider register additional presets at runtime without forking the package.
Tech Stack — Pure PHP built on Laravel’s illuminate/console, illuminate/filesystem, illuminate/validation, and illuminate/support components, plus Symfony Console for the command attribute API. It ships no bundled JavaScript framework itself — the Vue/React/Bootstrap dependencies it injects into package.json are resolved and built by the consuming app’s own Vite/npm toolchain, keeping the package’s own footprint small (composer.json requires only PHP ^8.0 and the four Illuminate components).
Code Quality — Tests live under tests/AuthBackend and run via PHPUnit against Orchestra Testbench (a Laravel package-testing harness), exercising the generated auth routes/controllers rather than just unit-testing isolated classes. Source files are compact, single-responsibility classes with full PHPDoc blocks on every public method, following Laravel’s own house style closely since the maintainers are the Laravel core team.
API Design — The entire developer-facing surface is one Artisan command (ui) with a type argument and --auth/--option flags — about as low-boilerplate as scaffolding tooling gets. The macro-based extension point (UiCommand::macro('nextjs', ...)) is a notably clean way to let third parties add presets without needing to fork or subclass the command.
Used by 10 apps in this directory
Akaunting
Invoicing Finance
Open-source online accounting for small businesses and freelancers — invoices, expenses, and reporting without monthly fees or vendor lock-in.
Bagisto
Analytics · Ecommerce
Open-source Laravel eCommerce platform for building multi-vendor marketplaces, B2B stores, headless commerce, and AI-powered storefronts.
Coolify
Devops · Hosting Control Panel
Open-source self-hosted PaaS — deploy apps, databases and 280+ services on your own servers with no vendor lock-in
Crater
Invoicing Finance
Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.
Invoice Ninja
Invoicing Finance · Project Management
Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.
Krayin CRM
Ecommerce · CRM
Free, open-source Laravel & Vue.js CRM for SMEs and enterprises to manage the complete customer lifecycle.
OpnForm
Forms Surveys · Marketing
Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics
Pixelfed
Social Media
A decentralized, self-hosted photo sharing platform built on ActivityPub for the open Fediverse.
SendPortal
Marketing
Self-hosted email marketing with full data control, multi-workspace isolation, and seamless integration with Amazon SES, SendGrid, Mailgun, and more