laravel-admin-extensions / multi-language

MIT License
25 stars 19 forks source link

laravel 6.*下貌似切换语言无效 #4

Closed ygcool closed 4 years ago

ygcool commented 4 years ago

请问什么时候能支持一下laravel6.*呢?

tarikhh commented 4 years ago

Didn't know what you did type but for me to make it working on Laravel 6.

I tested to use Request in Place if Input :

Replaced on file : vendor/laravel-admin-extensions/multi-language/src/Http/Controllers/MultiLanguageController.php

//use Illuminate\Support\Facades\Input; with use Illuminate\Http\Request;

...

//    public function locale() {
//        $locale = Input::get('locale');

with

    public function locale(Request $request) {
        $locale = $request->locale;

Seems working Languages can be switched.