Creating an example on how to run Vue withing a Laravel project
I am doing this example because I usually prefer to use the vue-cli to create Vue SPA but the way Laravel works is a bit different.
auth: login
auth: forgot password
auth: new user
contacts: home
contacts: search
Download the code, use composer to install dependencies for Laravel and npm for Vue.
Setup and create a database on your localhost named 'contacts-laravel'
Migrate the project with artisan command
After all your setup is complete you need to run those 2 commands in different cmd
.
Run php artisan serve
to start dev server.
In another cmd
window run npm run watch
to compile all the Vuejs code when modifying it.
Sergio Rivera
MEAN / MEVN Full stack developer