Support the ongoing development of Laravel.io →
Authentication Requests Session
Last updated 1 year ago.
0

Hi,

Did you found any best practice in this ? I am using Laravel 5.6 with mcamara laravel-localization package and I plan to send email notification to the users. U want these notification to be written in user's language. My first toughs go aling the following line :

  • Each time user selects a language save the selected lang in the database. users table or other table?
  • When fireing a notification check the value of the lang in the db and use it for writing the notification.

Does it makes sense ? What is the solution you implemented ?

Cheers, Serban

0

Sign in to participate in this thread!

Eventy

Your banner here too?

tutNichts tutnichts Joined 16 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.