Stars: 138
Forks: 50
Pull Requests: 45
Issues: 8
Watchers: 13
Last Updated: 2023-03-14 18:17:21
SPA modular Skeleton (Laravel + Vue + ElementUI) with CRUD generator
License: MIT License
Languages: PHP, Vue, Shell, Blade
The main goals of the project are:
git clone https://github.com/Yurich84/laravel-vue-spa-skeleton.git
cd laravel-vue-spa-skeleton
composer install
cp .env.example .env
- copy .env file.env
php artisan key:generate
php artisan migrate
yarn install
php artisan test
npm run watch
or npm run hot
- for hot reloadingphp artisan serve
and go 127.0.0.1:8000You can easily create module with CRUD functionality.
php artisan make:module {ModuleName}
This will create:
migration database/migrations/000_00_00_000000_create_{ModuleName}_table.php
model app/Models/{ModuleName}.php
factory database/factories/{ModuleName}Factory.php
tests tests/Feature/{ModuleName}Test.php
backend module app/Modules/{ModuleName}/
{ModuleName}/
│
├── routes_api.php
│
├── Controllers/
│ └── {ModuleName}Controller.php
│
├── Requests/
│ └── {ModuleName}Request.php
│
└── Resources/
└── {ModuleName}Resource.php
resources/js/modules/{moduleName}/
{moduleName}/
│
├── routes.js
│
├── api/
│ └── index.js
│
├── components/
│ ├── {ModuleName}List.vue
│ ├── {ModuleName}View.vue
│ └── {ModuleName}Form.vue
│
└── store/
├── store.js
├── types.js
└── actions.js
After creating module, you can edit model and migration by adding fields you need. Also you can add this fields into view. Don't forget run php artisan migrate.
Every module loads dynamically.