gkiokan / laravel-modules-stubs
There is no license information available for the latest version (1.4) of this package.
Stubs for Laravel-Modules with Scaffolding.
1.4
2020-07-27 20:13 UTC
README
This stubs repository can be used with laravel modules from nWidart. https://github.com/nWidart/laravel-modules
After installing this package you can you should configure your config/modules.php configuration to use this stubs. There will be an update soon that will change this automatically for you.
However there are currently some handycaps due the missing Ressource management. If you are going for Vue you must use the basePath from $LOWER_NAME$.
Update Modules Configuration
php artisan vendor:publish
// select Gkiokan\LMS\LMSServiceProvider
// Modules pre configuration will be copied to config/modules.php
Create new Module
php artisan modules:make ModuleName
Create new Vue Project
cd Modules/$LOWER_NAME$
cd Ressource
vue create js
// merge options
cd js && npm i && npm run build
Vue Router configuration
// VueRouter Configuration path
const router = new VueRouter({
mode: 'history',
base: '/core2/', // this is the basePath variable of $LOWER_NAME$
routes
})