首页 > 解决方案 > 如何将 Laravel 5.4 升级到 Laravel 7.12

问题描述

在我的旧项目 laravel 5.4 中,使用 zizaco/entrust,它不支持 laravel 7。所以我想使用 spatie/laravel-permission。

你能指导我怎么做吗?

标签: laravellaravel-5laravel-permissionentrust

解决方案


是的,我得到了这个问题的解决方案。请完成我使用的步骤。

- 运行命令 php artisan make:provider EntrustCustomServiceProvider - 转到 app/Providers/EntrustCustomServiceProvider.php 使用 Auth;并写入启动功能

关联

检查这个方法:现在我发现了其他 github 名称 greatsami-master 对 laravel 7 的支持(它也是从 zizaco entrust 分叉的)。 https://github.com/greatsami/entrust


推荐阅读