在使用laravel 5.1权限管理,使用 安装 zizaco/entrust 5.2.x-dev的时候执行 php artisan entrust:migration的时候报以下错误:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class name must be a valid object or a string
解决办法:
\vendor\zizaco\entrust\src\commands\MigrationCommand.php文件中第84行。
将
<em>get</em>'auth.providers.users.table'; <em>get</em>'auth.providers.users.model';
改为
<em>get</em>'auth.table'; <em>get</em>'auth.model';
即可。
此方法仅对 laravle 5.1 。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号