bezhanSalleh / filament-language-switch

A versatile and user-friendly plugin designed for Filament Panels.
MIT License
226 stars 44 forks source link

Share locale session between subdomains #64

Closed mstfkhazaal closed 10 months ago

mstfkhazaal commented 10 months ago

How can getlocal from blade file in dynamic subdomain?

bezhanSalleh commented 10 months ago

could you be a bit more descriptive?

mstfkhazaal commented 10 months ago

could you be a bit more descriptive?

Thank you, the problem has been resolved

My problem was accessing the current language from outside the filament. I got the current language from session('locale'), and added it to the .env file session_domain=.example.com. Then I executed the composer dump-autoload command and it worked