laravel - 如何将 Laravel 5.4 升级到 Laravel 7.12
问题描述
在我的旧项目 laravel 5.4 中,使用 zizaco/entrust,它不支持 laravel 7。所以我想使用 spatie/laravel-permission。
你能指导我怎么做吗?
解决方案
是的,我得到了这个问题的解决方案。请完成我使用的步骤。
- 运行命令 php artisan make:provider EntrustCustomServiceProvider - 转到 app/Providers/EntrustCustomServiceProvider.php 使用 Auth;并写入启动功能
检查这个方法:现在我发现了其他 github 名称 greatsami-master 对 laravel 7 的支持(它也是从 zizaco entrust 分叉的)。 https://github.com/greatsami/entrust
推荐阅读
- python - 在 python 中结合网络几何和拓扑
- matlab - 如何计算每个网格单元的面积?
- ios - 是否可以在同一个应用程序中同时运行 AFNetworking 和 Alamofire?
- javascript - 如何将javascript数据传递到另一个页面?
- prolog - 在 Prolog 中寻找主要因素
- json - 如何使用python保存json所有更新数据
- ftp - 使用 MSINET 将文件上传到不存在的 FTP 路径时没有错误
- javascript - 允许用户在没有提交按钮的情况下上传 x 文件夹 chrome 扩展上的图像
- php - PHP 数组库存编辑
- ios - 斯威夫特:如何总是从洗牌数组中获得不同的价值