Proper way
Check if /projectroot/app/Providers/TranslationServiceProvider.php
class exists with the minimum content of:
<?php
namespace AppProviders;
class TranslationServiceProvider {}
Create this file if you don't have it. Then run php artisan config:cache
to check if the error has been gone.
Hacky way
Open bootstrap/services.php
file and search for AppProvidersTranslationServiceProvider
and remove the full line where you see it.
Finally after both ways
Go to config/app.php
, find the line AppProvidersTranslationServiceProvider.php
in providers
and aliases
arrays, where it exists and remove them.
Then run php artisan config:cache
again to cache the services without having that reference. If everything goes correct, you may safely delete the file which you've created at the first step (if you've used the proper method).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…