Skip to content

Creating an example on how to run Vue withing a Laravel project

Notifications You must be signed in to change notification settings

riveraser/contacts-laravel-vue

Repository files navigation

contacts-laravel-vue

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.


Results:

auth: login

Login

auth: forgot password

Forgot

auth: new user

Register

contacts: home

Contacts

contacts: search

Search


Setup:

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


Run:

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

sergiorivera.me

Visit my LinkedIn profile

About

Creating an example on how to run Vue withing a Laravel project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published