Laravel - Notifications - User Preferred Locales

Sometimes, applications store each user's preferred locale. By implementing the HasLocalePreference contract on your notifiable model, you may instruct Laravel to use this stored locale when sending a notification:

    use Illuminate\Contracts\Translation\HasLocalePreference;
    class User extends Model implements HasLocalePreference
         * Get the user's preferred locale.
         * @return string
        public function preferredLocale()
            return $this->locale;

Once you have implemented the interface, Laravel will automatically use the preferred locale when sending notifications and mailables to the model. Therefore, there is no need to call the locale method when using this interface:

    $user->notify(new InvoicePaid($invoice));