laravel/ui
Legacy Laravel package that adds Bootstrap, Vue, or React frontend scaffolding and simple auth (login/registration) via Artisan (php artisan ui ... --auth). Works with modern Laravel, but Breeze or Jetstream are recommended for new apps.
Pros:
Cons:
resources/js, resources/sass).php artisan ui:bootstrap --auth).AuthenticatesUsers) relies on Laravel’s core, but customizations could introduce vulnerabilities.laravel/ui as a temporary scaffold.laravel/ui.laravel/ui’s flexibility)?Laravel Ecosystem:
resources/sass/app.scss). Can be replaced with Tailwind or custom CSS.mix-manifest.json (legacy) or Vite’s native asset handling.Non-Laravel Stacks:
| Scenario | Migration Strategy | Effort | Risks |
|---|---|---|---|
| New Laravel Project | Skip laravel/ui; use Breeze/Jetstream instead. |
Low | None |
| Existing Laravel + Mix | Replace laravel-mix with Vite; adopt laravel/ui for auth scaffolding. |
Medium | Vite config conflicts |
| Legacy Auth System | Use laravel/ui for auth scaffolding only; keep custom frontend. |
Low | Template mismatches |
| Full Frontend Overhaul | Replace laravel/ui presets with custom Vite setup (e.g., Tailwind + Alpine.js). |
High | Breakage in auth flows |
| Multi-Framework Team | Use laravel/ui for shared auth; let teams customize frontend independently. |
Medium | Inconsistent styling/JS patterns |
<script setup> syntax). Vue 2 projects may need adjustments.create_password_resets_table) may conflict with custom auth tables.composer.json has no conflicting frontend packages (e.g., duplicate Bootstrap versions).composer require laravel/ui
npm install
php artisan ui bootstrap --auth).nextjs preset).vite.config.js if using custom asset paths.app.scss for Bootstrap variables or replace with Tailwind.npm run dev/npm run build).npm run build is part of your CI/CD pipeline.app/Providers/AppServiceProvider (if using Vite’s @vite directive).vite.config.js adjustments (e.g., plugin versions).Auth facade or tinker (e.g., php artisan tinker → Auth::attempt()How can I help you explore Laravel packages today?