Use the frontend scaffold in Laravel 6

Tram Ho

Since Laravel 6, the frontend scaffold has been separated as a Laravel UI pack.

In this article, I will describe how to set up the user interface using Vue / Bootstrap, etc.

Install Laravel UI

Run composer require laravel / ui –dev to install Laravel UI package.

After running, add artisan as follows:

Check out artisan ui –help.

The preset includes bootstrap, vue, react.

Install one by one in the following order:

Setup Bootstrap

Run artisan ui bootstrap.

Check file changes.

Include the above changes.

The necessary package installation and reading of css, js has been added.

Setup Vue

Running artisan ui vue.

Check file changes.

Vue settings have been added to the bootstrap.

Setup React

Run artisan ui react.

Check file changes.

React Setting has been added to the bootstrap.

Add custom presets

If using Laravel UI, you can create custom scaffolds.

Define the following for a service provider:

After that, you can also prepare your own frontend scaffold with custom artisan ui.

Share the news now

Source : Viblo