PhpDev.App
anindya-dhruba/laravel-vue-spa

anindya-dhruba/laravel-vue-spa

Stars: 164

Forks: 67

Pull Requests: 25

Issues: 12

Watchers: 15

Last Updated: 2023-03-01 13:05:12

SPA Boilerplate made with Laravel 5.6, Vue 2, Bootstrap 4, Vue-router 3, Vuex 3, Axios

License: MIT License

Languages: PHP, Vue, HTML

https://laravel-vue-spa.herokuapp.com

Laravel Vue SPA

Starter Boilerplate SPA made with Laravel 5.6, Bootstrap 4, JWT Auth, Vue 2, Vue-router 3, Vuex 3, Axios & ❤️

Demo

Laravel Vue SPA

Live Demo

What's New

  • Upgraded to Bootstrap 4 from Bootstrap 3
  • Upgraded to Vuex 3 from Vuex 2
  • Upgraded to Vue Router 3 from Vue Router 2
  • All packages are updated (both PHP and JS)
  • Removed unnecessary vuex store modules
  • Project structure updated

What's included

Installation:

  • Clone the repo
  • Copy .env.example to .env
  • Configure .env
  • cd to the repo
  • Run composer install --no-scripts
  • Run php artisan key:generate
  • Run php artisan migrate --seed. A user will be seeded so that you can login, where:
  • Run npm install
  • Run npm run watch
  • View the site by
    • Either running php artisan serve if you are not using vagrant homestead or laravel valet (in a new terminal/command prompt)
    • Otherwise go to your local dev url configured in vagrant

For any problem in laravel setup, please get help from Laravel site. If that does not work, please create an issue, I will try my best to help.

Note:

I tried to follow the best practices, but any suggestion, modification is highly appreciated.