W3cubDocs

/Laravel 5.8

Localizable

trait Localizable (View source)

Methods

mixed withLocale(string $locale, Closure $callback)

Run the callback with the given locale.

Details

mixed withLocale(string $locale, Closure $callback)

Run the callback with the given locale.

Parameters

string $locale
Closure $callback

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Support/Traits/Localizable.html