记一次生产环境的事故-laravel-admin的扩展
分类:知识大全作者:互联网王者 发布时间:2014-07-16 08:58:08阅读:15万+ 属地:未知
问题起因:
laravel-admin的扩展引起的
Encore\Admin\Form::extend('lah5upload', \Encore\lah5upload\lah5uploadFiled::class);
这个Encore原是laravel-admin的命名空间
而lah5upload的命名空间是Hago
可能是因为需要引入扩展,而将包的命名空间改成Encore
---------------------------------------------
而我因为composer requie 一个其他的包之后
lah5upload包就变成了Hago,手动改回来无效
导致系统一直无法上次jpg图片
其真正原因估计还是在这个包上,具体我也无法定位
最后没有办法只能用最笨的办法解决
-------------------------------------------------
办法如下:
上次正常的vendor.zip到项目目录下
重命名原来的vendor文件夹
解压unzip vendor.zip
再覆盖正常的composer.json和lock文件
再执行composer dump-autoload
然后才解决问题。
```
[root@iZbp1ehco2fi1l5gg4nm4fZ app]# composer dump-autoload
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Generating optimized autoload files
Class App\Models\XdOrder\Public located in ./app/Models/XdOfficial/Public.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Models\XdOrder\CrowdItem located in ./app/Models/XdOfficial/CrowdItem.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Models\EOut\GoodsLink located in ./app/Models/EOut/GoodLink.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Exports\SellerBillSheet located in ./app/Exports/TestExport.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Http\Resources\Camp\CampUserOver located in ./app/Http/Resources/Camp/CampUserOver2.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Actions\Official\AutoNplanAction located in ./app/Admin/Actions/Official/AutoWplanAction.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Selectable\PayItemSelect located in ./app/Admin/Selectable/PayItemSelectable.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\ArticleController located in ./app/Admin/Controllers/AjaxConroller.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Api\PayController located in ./app/Admin/Controllers/Api/PayContoller.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Eout\CategoryController located in ./app/Admin/Controllers/EOut/CategoryController.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Eout\ServiceHandOverController located in ./app/Admin/Controllers/EOut/ServiceHandOverController.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Comment\CommentReportController located in ./app/Admin/Controllers/User/CommentReportController.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Official\CreateArticleController located in ./app/Admin/Controllers/Official/CreatePyqArticleController.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Official\CrowdController located in ./app/Admin/Controllers/Official/Article.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Official\NPlanController located in ./app/Admin/Controllers/Official/NgController.php does not comply with psr-4 autoloading standard. Skipping.
Class App\Admin\Controllers\Official\HandoverLogController located in ./app/Admin/Controllers/Official/HanderoverLogController.php does not comply with psr-4 autoloading standard. Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: codingyu/laravel-ueditor
Discovered Package: dianwoung/large-file-upload
Discovered Package: encore/laravel-admin
Discovered Package: fideloper/proxy
Discovered Package: hoga/lah5upload
Discovered Package: jacobcyl/ali-oss-storage
Discovered Package: laravel-admin-ext/log-viewer
Discovered Package: laravel/tinker
Discovered Package: maatwebsite/excel
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: peinhu/aetherupload-laravel
Discovered Package: tymon/jwt-auth
Discovered Package: yansongda/laravel-pay
Package manifest generated successfully.
Generated optimized autoload files containing 7693 classes
```
声明:本文内容版权归原作者所有,未经授权,禁止转载!
声明:本站仅提供内容存储、展示服务,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的虚假信息,谨防诈骗。如发现有害或侵权内容,可联系本站删除!

- 上一篇:mysql自动备份和自动删除历史备份文件
- 下一篇:56式陈式太极拳动作名称
发表评论
