Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ui Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Laravel UI is a legacy Laravel package that provides a simple starting point for frontend scaffolding and Bootstrap-based authentication views. It offers quick generators for Bootstrap, Vue, or React setups, integrating with Laravel’s typical asset workflow (via NPM and modern tooling like Vite).

Best suited for maintaining existing projects that rely on classic UI scaffolding; for new apps, consider Laravel Breeze or Jetstream.

  • Generate frontend scaffolding for bootstrap, vue, or react
  • Optional --auth scaffolding (login, registration, password reset)
  • Installs required frontend dependencies via NPM
  • Works across multiple Laravel versions (latest major gets fixes)
  • Simple, familiar templates built on Bootstrap
Frequently asked questions about Ui
Is Laravel UI still maintained, or should I use Laravel Breeze/Jetstream for new projects?
Laravel UI is a legacy package with limited updates. The official docs recommend **Laravel Breeze** (simpler) or **Jetstream** (feature-rich) for new projects. UI still works for Laravel 9–13 but lacks long-term support. Use it only if you need minimalism or maintain an existing project.
How do I install Laravel UI and generate a Vue frontend with authentication?
Run `composer require laravel/ui`, then execute `php artisan ui vue --auth`. This installs Vue 3 + Vite, generates auth views (login, register, password reset), and sets up NPM dependencies. No extra configuration is needed for basic use.
Does Laravel UI support Laravel 13 and PHP 8.4?
Yes, Laravel UI v4.x supports Laravel 9–13 and PHP 8.1–8.4. Check the [README](https://github.com/laravel/ui) for version-specific branches if you’re on an older Laravel release. Always test in a staging environment before production.
Can I customize the Bootstrap templates or replace them with Tailwind CSS?
The Bootstrap templates are basic and can be manually overridden by editing files in `resources/views/auth/` or `resources/sass/app.scss`. For Tailwind, you’d need to remove Bootstrap dependencies and configure Tailwind manually—UI doesn’t natively support it.
What Node.js version is required for Laravel UI’s Vite setup?
Laravel UI requires **Node.js 16+** for Vite and NPM. Verify with `node -v`; older versions may cause build errors. Use `npm install` after scaffolding to install frontend dependencies. For production, run `npm run build` to optimize assets.
How do I add custom JavaScript or CSS to Laravel UI’s Vue/React setup?
Edit `resources/js/app.js` (Vue) or `resources/js/app.jsx` (React) for custom logic. Add imports at the top and extend the default `app` object. For CSS, modify `resources/sass/app.scss` or create a new file in `resources/css/` and import it.
Will Laravel UI work with Laravel’s default authentication system (AuthenticatesUsers trait)?
Yes, Laravel UI generates auth views (e.g., `login.blade.php`) that integrate seamlessly with Laravel’s built-in authentication contracts like `AuthenticatesUsers`. No additional setup is required if you’re using Laravel’s default auth scaffolding.
Are there any security risks using Laravel UI in production?
Laravel UI itself is secure, but ensure you’re using **HTTPS**, sanitizing user input, and following Laravel’s security best practices (e.g., password hashing). The `--auth` flag generates CSRF-protected forms, but review the generated Blade files for edge cases.
Can I migrate from Laravel UI to Laravel Breeze without rewriting the entire frontend?
Partial migration is possible but not seamless. Breeze uses a different structure (e.g., Inertia.js for React/Vue). Start by copying over auth logic (controllers, middleware) and gradually replace UI components. Test thoroughly, as routing and asset paths may differ.
Does Laravel UI support multi-factor authentication (MFA) out of the box?
No, Laravel UI does not include MFA. You’d need to integrate Laravel’s [official MFA package](https://github.com/laravel/fortify) or a third-party solution like `laravel-sanctum` manually. The auth scaffolding provided is basic and lacks advanced features.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport