我正在尝试删除角色
$role = Role::findOrFail(1);
$role->delete();
我收到以下错误
FatalErrorException in Model.php line 945:
Class name must be a valid object or a string
在第 86 行的 vendor/zizaco/entrust/src/commands/MigrationCommand.php 中
$usersTable = Config::get('auth.providers.users.table');
$userModel = Config::get('auth.providers.users.model');
榜样班
namespace App\Models;
use Zizaco\Entrust\EntrustRole;
class Role extends EntrustRole
{
protected $fillable = ['name', 'display_name', 'isActive','description', 'created_at', 'updated_at'];
}