lundi 2 avril 2018

Laravel 5.4 set locale in session

I would like to know how to set locale in session.

my language picker isnt' input type, but just text. here is blade fragment - this is language picker:

<div class = "col-lg-5 col-md-5" id = "lang">
    <ul id = "lang_menu">
        <li class = "language active">Latviešu</a></li>
        <li class = "language">Pусский</a></li>
        <li class = "language">English</a></li>
    </ul>
</div>

Here are routes:

Route::get('/', 'PagesController@index');

Route::get('/mafia', 'PagesController@mafia');

Route::get('/games', 'PagesController@games');

Route::get('/discounts', 'PagesController@discounts');

Route::get('/tournaments', 'PagesController@tournaments');

Route::get('/gallery', 'PagesController@gallery');

Route::get('/aboutus', 'PagesController@aboutus');

also i have transladet files who works fine when i changing locale in config



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire