Closed hvostuho closed 3 years ago
You can use the localization()
helper instead of Localization facade: localization()->setLocale()
Or the Real-Time Facades by using this namespace Facades\Arcanedev\Localization\Contracts\Localization
instead of Arcanedev\Localization\Localization
Description:
Error Class 'Localization' not found Please tell me what am I doing wrong?
Steps To Reproduce:
Install Laravel 8
Install ARCANEDEV/Localization
composer require arcanedev/localization
Then do it.
php artisan vendor:publish --provider="Arcanedev\Localization\LocalizationServiceProvider"
Add to file app/Http/routes.php
Route::group([ 'prefix' => Localization::setLocale(), 'middleware' => [ 'localization-session-redirect', 'localization-redirect', ], ], function() { Route::get('/', function() { return view('welcome'); }); });