讨论数量:
参考:https://github.com/spatie/laravel-permissi...
This package assumes that your app resolves a compatible instance of Illuminate\Routing\Route, so perhaps the error you're getting indicates that you've bound a different incompatible instance of Route, either in your app or in another package you've installed.
检查是否把Route的实例绑定到别的类去了。检查
'aliases' => [
.
.
.
'Route' => Illuminate\Support\Facades\Route::class,
.
.
.
],
或者app/Providers/RouteServiceProvider
中是否做了什么特别的操作。
推荐文章: