With the release of Laravel 5.7 the Illuminate\Notifications\Notification class started offering a locale method to set the desired language. The application will change into this locale when the notification is being formatted and then revert back to the previous locale when formatting is complete. Here is an example of this feature:
$user->notify((new InvoicePaid($invoice))->locale('ar'));
I just need to use this feature in lumen (latest version) but when I implement that Like documentation said I got an error
Call to undefined method Laravel\Lumen\Application::getLocale()
and this because there is no getLocale or setLocale methods in lumen application.. so any ideas to solve this.