rdhafiz/laravel-vue-spa

Laravel Vue SPA - A php library to setup a Laravel Vue SPA project environment by couple of small commands

Installs: 177

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 2

Forks: 3

Open Issues: 0

Type:project

pkg:composer/rdhafiz/laravel-vue-spa

0.03 2021-02-14 05:20 UTC

This package is auto-updated.

Last update: 2025-09-14 15:02:23 UTC


README

Laravel Vue SPA

Laravel Vue SPA - A php library to setup a Laravel Vue SPA project environment with couple of small commands.

Installation

Run This commands inside a Fresh or existing Laravel project

composer require rdhafiz/laravel-vue-spa
php artisan LaravelVueSpa
npm install && npm install vue vue-router vuex axios vue-page-transition -save
npm run watch
php artisan serve

The package will automatically register its service provider.

Configurations

routes/web.php

Http/Controllers/LaravelVueSpaController.php

resources/views/Lvs/index.blade.php

Vue Development Configuration Folder Structure

resources/js

├── ...
├── js                    ### Vue Development Folder
│   ├── Pages                 # Folder where all vue pages are stored
│   │   ├── About.vue         # Demo About us page
│   │   ├── Contact.vue       # Demo Contact us page
│   │   ├── Home.vue          # Demo Home page
│   ├── Router            ### Vue Route Folder
│   │   ├── router.js         # All Vue Routes are here
│   ├── Store             ### Vuex Manager Folder
│   │   ├── store.js          # Vues file to manage vuex data
│   ├── app.js            ### Vue configure File
│   ├── App.vue           ### Root Vue Template      
└── ...

License

Released under the MIT License, see LICENSE.