Laravel UI utilities and presets.
laravel/ui stats
- Downloads
- 64.5M
- Stars
- 2,294
- Open Issues
- 0
- Forks
- 447
Laravel UI Package Summary
Overview
Laravel UI is a straightforward package that offers basic frontend scaffolding primarily using Bootstrap, with support for Vue and React. It's designed to help kickstart the development of Laravel applications by providing an initial setup for authentication and frontend resources. While it supports the latest Laravel versions, it is recommended for legacy projects, with newer projects encouraged to explore Laravel Breeze or Laravel Jetstream.
Key Features
- Frontend Scaffolding: Quick setup for Bootstrap, Vue, and React.
- Authentication: Includes templates for login and registration functionalities.
- Compatibility: Supports various versions of Laravel, from 5.8 up to the latest.
- Integration with Vite: Uses Vite for compiling CSS and JavaScript, enhancing developer experience with fast build times.
- Extensible: Allows adding custom methods via macros to the
UiCommand
class.
Installation and Usage
To install the package, run:
composer require laravel/ui
You can then generate scaffolding for Bootstrap, Vue, or React:
php artisan ui bootstrapphp artisan ui vuephp artisan ui react
For authentication scaffolding:
php artisan ui bootstrap --authphp artisan ui vue --authphp artisan ui react --auth
Frontend Development
CSS
Install frontend dependencies with NPM:
npm install
Compile SASS to CSS using Vite:
npm run dev
JavaScript
Install JavaScript dependencies:
npm install
Compile and bundle JavaScript using Vite:
npm run dev
Writing Components
Vue components (or React, if preferred) can be used and customized within your application. Components are easily integrated into Laravel Blade templates.
Additional Information
- Documentation & Contributions: Further details can be found in the official Laravel documentation.
- License: Open-sourced under the MIT license.
This package provides a simple yet effective way to scaffold and manage the frontend of a Laravel application, with legacy support and integration of modern tools like Vite for a seamless development experience.