The line ServiceProvider::addProviderToBootstrapFile("{$namespace}\\Providers\\MetaTagsServiceProvider");tries to find ServiceProvider in the namespace Butschster\Head\Console, which causes an error "Class "Butschster\Head\Console\ServiceProvider" not found
in Laravel 11. Added use Illuminate\Support\ServiceProvider; to the file. Fix tested on Laravel 11 and Laravel 10.
The line
ServiceProvider::addProviderToBootstrapFile("{$namespace}\\Providers\\MetaTagsServiceProvider");
tries to find ServiceProvider in the namespace Butschster\Head\Console, which causes an error"Class "Butschster\Head\Console\ServiceProvider"
not found in Laravel 11. Addeduse Illuminate\Support\ServiceProvider;
to the file. Fix tested on Laravel 11 and Laravel 10.