protected function preferredLocale($notifiable, $notification)
    {
        return $notification->locale ?? $this->locale ?? value(function () use ($notifiable) {
            if ($notifiable instanceof HasLocalePreference) {
                return $notifiable->preferredLocale();
            }
        });
    }
protected function preferredLocale($notifiable, $notification)
    {
        return $notification->locale ?? $this->locale ?? value(function () use ($notifiable) {
            if ($notifiable instanceof HasLocalePreference) {
                return $notifiable->preferredLocale();
            }
        });
    }
protected function preferredLocale ( $ notifiable , $ notification ) { return $ notification -> locale ?? $ this -> locale ?? value ( function ( ) use ( $ notifiable ) { if ( $ notifiable instanceof HasLocalePreference ) { return $ notifiable -> preferredLocale ( ) ; } } ) ; }
Get the notifiable's preferred locale for the notification.

@param  mixed  $notifiable
@param  mixed  $notification
@return string|null
Get the notifiable s preferred locale for the notification .