Illuminate\Routing\UrlGenerator::__construct(): Argument #2 ($request) must be of type Illuminate\Http\Request, null given, called in /....../
/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 64
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Description
The package is installed but go this error
composer dump-autoload
Generating optimized autoload files
In UrlGenerator.php line 128:
Illuminate\Routing\UrlGenerator::__construct(): Argument #2 ($request) must be of type Illuminate\Http\Request, null given, called in /....../
/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 64
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Steps To Reproduce
Example Application
No response
Version of spatie/laravel-permission package:
6.9
Version of laravel/framework package:
11.9
PHP version:
8.2
Database engine and version:
No response
OS: Windows/Mac/Linux version:
No response