ssgroup / language
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- ssgroup/apimanager: dev-master
This package is auto-updated.
Last update: 2024-10-19 18:15:26 UTC
README
you need to install this package
composer require ssgroup/language
after install package you can publish vendor
php artisan vendor:publish --tag=ssgroup
and check your browser
{{url}}/ssgroup-language/admin/language
this this route is change your locale
Route::get('change/locale/{locale}', function($locale){
if (! in_array($locale, ['en', 'np'])) {
abort(400);
}
session()->put('locale', $locale);
return redirect()->back();
})->name('change.locale');