1 使用订制的包 配置

    

"repositories": [
{
"type": "path",
"url": "./packages/mypackages"
}
],

 


"lib/mypackages": "1.0.0",

 

 

"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"prettus/l5-repository": "^2.5",
"predis/predis": "^1.0",
"barryvdh/laravel-debugbar": "^2.2",
"barryvdh/laravel-ide-helper": "^2.2",
"jenssegers/agent": "^2.3"
}

 

2  laravel composer 配置优化

    

"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan cache:clear",
"php artisan route:cache",
"php artisan optimize",
"composer dumpautoload"
]

 

posted on 2016-12-22 10:14  ヽ坚强的蘑菇  阅读(773)  评论(0编辑  收藏  举报