laravel/ui
Legacy Laravel package for Bootstrap/Vue/React frontend and simple auth scaffolding. Install via Composer, then run php artisan ui {bootstrap|vue|react} [--auth] to generate UI and login/registration scaffolds. Consider Breeze or Jetstream for new apps.
laravel/ui is a lightweight, opinionated package for scaffolding frontend assets (Bootstrap, Vue, React) and authentication views in Laravel. It aligns well with Laravel’s ecosystem, particularly for projects requiring rapid UI prototyping or adherence to Laravel’s default conventions.composer require, php artisan ui). Works seamlessly with Laravel’s authentication system (e.g., AuthenticatesUsers trait).package.json, vite.config.js) for non-preset workflows.login.blade.php) integrate natively with Laravel’s Blade templating engine.laravel/ui is a legacy choice. Risk of long-term maintenance gaps.app.scss or app.js).AuthenticatesUsers, RegistersUsers) and Blade views.resources/sass/app.scss.npm run dev/npm run build workflows.users table and password reset migrations.composer require laravel/ui
npm install
php artisan ui vue --auth # Example: Vue + Auth
UiCommand::macro() in a service provider.npm run dev (hot-reload with Vite).npm run build (optimized assets in public/build).resources/views/auth/login.blade.php) in routes:
Route::get('/login', [LoginController::class, 'showLoginForm']);
@vitejs/plugin-vue fixes for Laravel 12).vite.config.js.npm run dev).resources/sass/js.layouts/app.blade.php).Auth::routes()) and middleware (auth).<example-component></example-component>).resources/ and public/build/.package.json (e.g., Bootstrap 5.x → 6.x).laravel/ui is legacy (prioritize Breeze/Jetstream for support).AuthenticatesUsers) are Laravel-standard but may need debugging for custom logic.mode: 'production').| Component | Failure Mode | Mitigation |
|---|---|---|
| Node.js/NPM | Missing dependencies or build failures | Use npm ci for deterministic installs. |
| Vite | Asset compilation errors | Check vite.config.js and clear node_modules. |
| Blade Views | Template syntax errors | Validate Blade files with php artisan view:clear. |
| Auth System | Session/authentication issues | Test with php artisan auth:clear-resets. |
| Database | Migration conflicts | Use php artisan migrate:fresh for testing. |
| Laravel Upgrade | Package compatibility issues | Test in a staging environment first. |
php artisan ui:preset-name --auth and test the scaffold.app.scss/app.js and rebuild assets.How can I help you explore Laravel packages today?