ssgroup/language

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2022-07-19 13:41 UTC

This package is auto-updated.

Last update: 2024-04-19 17:13:09 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');