Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to store users default language into database #883

Open
jobasco opened this issue Oct 24, 2023 · 1 comment
Open

How to store users default language into database #883

jobasco opened this issue Oct 24, 2023 · 1 comment

Comments

@jobasco
Copy link

jobasco commented Oct 24, 2023

Hi, thanks a lot for this wonderfull pacpage, i want to dect my registred users default language from the browser and store it in database(users table).
I am new to laravel and php.
Please help.

@StefanoTesla
Copy link

create a user colum called locale and update it when user change...
And then use a middlware firing App::setLocale($locale);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants