laravel/ui
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
illuminate/console | v10.48.10 | - | MIT | prod | |
illuminate/filesystem | v10.48.10 | - | MIT | prod | |
illuminate/support | v10.48.10 | - | MIT | prod | |
illuminate/validation | v10.48.10 | - | MIT | prod |
Laravel UI is a utility and preset package to enhance the frontend development experience for Laravel, a popular PHP framework. It provides a simple authentication scaffolding based on the Bootstrap CSS framework, along with basic starting points for CSS and Javascript processing using popular libraries such as Bootstrap, React, and Vue.js. While the package continues to work with the latest version of Laravel, it is considered "legacy" and developers are encouraged to consider newer alternatives like Laravel Breeze or Laravel Jetstream for new projects.
Using Laravel UI is straightforward and involves installing the package and then using an Artisan command to install frontend scaffolding based on the developer's preference. Firstly, you need to use Composer, the PHP package manager, to install Laravel UI:
composer require laravel/ui
After installation, Laravel UI provides the ui
Artisan command to generate the frontend scaffolding. This can be tailored to use Bootstrap, Vue.js, or React. For example, to use Bootstrap, the command would be:
php artisan ui bootstrap
Similar commands are used for Vue.js (php artisan ui vue
) and React (php artisan ui react
). In addition to the basic scaffolding, Laravel UI can also generate scaffolding for authentication features with the --auth
option. For example:
php artisan ui bootstrap --auth
The above command would generate login/registration scaffolding for a frontend using Bootstrap.
The official documentation for Laravel UI is located on the GitHub repository of the package, accessible at https://github.com/laravel/ui.git
. You will find instructions for installation and usage, as well as information about the different versions and their compatibility with various Laravel versions. Note that only the latest major version of Laravel UI receives bug fixes and support. The documentation also includes guides for writing CSS and JavaScript for the package, including how to compile assets with Vite, a modern frontend build tool.