S
S
SM_ST2020-12-17 15:01:01
Laravel
SM_ST, 2020-12-17 15:01:01

Session not visible in Laravel?

in LocaleMiddleware I write

if($locale) App::setLocale($locale);

        else{
          $locale = config('app')['localeDefault'];
          App::setLocale($locale);
        }

 Session::put('locale', $locale);


but this session is not visible in controllers Session::get('locale)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question