HasLocalePreference.php
TLDR
This file is an interface that belongs to the Illuminate\Contracts\Translation namespace. It defines a method to get the preferred locale of an entity.
Methods
preferredLocale
This method returns the preferred locale of the entity as a string, or null if no preferred locale is set.
<?php
namespace Illuminate\Contracts\Translation;
interface HasLocalePreference
{
/**
* Get the preferred locale of the entity.
*
* @return string|null
*/
public function preferredLocale();
}