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.

v1.0.2-alpha 2020-04-19 14:57 UTC

This package is auto-updated.

Last update: 2024-04-20 00:34:32 UTC


README

Latest Version on Packagist Total Downloads License

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.

PresetInstall 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.