Fixing Laravel’s Notification locale issue

Originally posted — https://setkyar.com/laravels-notification-locale-issue

I was checking the locale issue on my own application and found out this interesting issue. I am using Laravel’s user-preferred locales for the notification translation. But, it keeps going with our application's default language. It does not use the user’s preferred locales.

https://laravel.com/docs/8.x/notifications#localizing-notifications
https://laravel.com/docs/8.x/notifications#user-preferred-locales