W3cubDocs

/Laravel 5.8

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/5.8/Illuminate/Contracts/Translation/HasLocalePreference.html