kleiven / laravel-ui
With a single Artisan command, in a fresh Laravel application, you get up and running with a fully functional Single Page Application (SPA) using Vue and Vue Router ready for you to build something wonderful.
Requires
- php: ^7.2.5
- illuminate/filesystem: ^7.0
- illuminate/support: ^7.5
- laravel/ui: ^2.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-05-08 23:18:46 UTC
README
Front end scaffolding for Laravel
This package adds front end scaffolding to your Laravel application.
Once installed in a fresh Laravel application you quickly get a basic starting point.
To get up and running with a Single Page Application (SPA) just run the following Artisan command:
php artisan ui spa-bootstrap-cover
Then your Laravel application will be set up with a fully functional SPA using Vue and Vue Router ready for you to build something wonderful. The scaffolded front end is based on the bootstrap Cover template. Future releases will add more choices so you may chose the starting point that fits your application best.
Installation
Use Composer to install this package:
composer require kleiven/laravel-ui
Now you may scaffold you front end using the Artisan command:
php artisan ui spa-bootstrap-cover
Also, remember to run npm install
to install added dependencies such as bootstrap, vue and vue-router.
Available scaffolds
This package declares preset macros using Laravel's UiCommand
. Therefore all front end scaffolding may be installed using the Ui
Artisan command.
Since March 2020 there is a new kid in town and for now there has only been time to make 1 preset, but more will follow. The following table lists all presets available for the current package version.
Preset | Install command |
---|---|
spa-bootstrap-cover | php artisan ui spa-bootstrap-cover |
Contributing
Hopefully it will be possible to contribute with your presets in the future.
License
This package is licensed under the MIT license.