I am getting this error while upgrading Laravel v7.30.6 to v8.0. and everything is working in my current version (v7.30.6)
@php artisan package:discover --ansi
PHP Fatal error: Declaration of App\Providers\SparkServiceProvider::booted() must be compatible with Illuminate\Support\ServiceProvider::booted(Closure $callback) in /myproject/app/Providers/SparkServiceProvider.php on line 55
Can anyone please help me?
I ll advise you go through the upgrade guide of spark. see https://spark-classic.laravel.com/docs/6.0/upgrade