gkiokan / laravel-modules-stubs
该软件包的最新版本(1.4)没有提供许可证信息。
Laravel-Modules 模板,带有脚手架功能。
1.4
2020-07-27 20:13 UTC
README
此模板存储库可以与nWidart的laravel模块一起使用。https://github.com/nWidart/laravel-modules
安装此软件包后,您应该配置config/modules.php配置以使用此模板。很快将会有一个更新,将自动为您完成此操作。
但是,由于缺少资源管理,目前存在一些限制。如果您要使用Vue,则必须使用来自 . 的basePath。
更新模块配置
php artisan vendor:publish
// select Gkiokan\LMS\LMSServiceProvider
// Modules pre configuration will be copied to config/modules.php
创建新模块
php artisan modules:make ModuleName
创建新的Vue项目
cd Modules/$LOWER_NAME$
cd Ressource
vue create js
// merge options
cd js && npm i && npm run build
Vue路由配置
// VueRouter Configuration path
const router = new VueRouter({
mode: 'history',
base: '/core2/', // this is the basePath variable of $LOWER_NAME$
routes
})