dimanche 11 février 2018

switch between main layout rtl and main layout ltr in larave 5.5

I look for to switch between the main layout RTL and main layout LTR, when the user selects the English language will set in layout LTR and when the user selects Arabic will set to layout RTL.

I did that but it's don't work below :

@if (Session::get('locale') ==='ar')
   @extends('layouts.main-rtl')
@elseif(Session::get('locale') ==='en')
   @extends('layouts.main')
@endif

in my debug laravel I see this see in the screenshot below : enter image description here

Thank you in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire