laravel / 10 / api / 10.x / illuminate / contracts / translation / haslocalepreference.html

HasLocalePreference

interface HasLocalePreference (View source)

Methods

string|null preferredLocale()

Get the preferred locale of the entity.

Details

string|null preferredLocale()

Get the preferred locale of the entity.

Return Value

string|null

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Contracts/Translation/HasLocalePreference.html