laravel / 7 / api / 7.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/7.x/Illuminate/Contracts/Translation/HasLocalePreference.html