Easiest way to add Vue and authentication on Laravel.

Ariel Mejia - Jun 1 '20 - - Dev Community

Hi, there are many ways to install VueJS in a Laravel project, you can create a project and then install "laravel/ui" package, but there is a simpler way to work with Laravel + VueJS:

The composer Laravel installer has an update to add a flag when you are creating a Laravel project:

To update the laravel installer:

composer global update laravel/installer
Enter fullscreen mode Exit fullscreen mode

Now you can use the new auth flag:

laravel new myapp --auth
Enter fullscreen mode Exit fullscreen mode

That's all, thanks for reading.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .