PHP Class BenConstable\Localize\Determiners\Host

Inheritance: extends Determiner
Afficher le fichier Open project: benconstable/laravel-localize-middleware Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Collection $hostMapping ) : void Constructor.
determineLocale ( Illuminate\Http\Request $request ) : string Determine the locale from the current host.

Method Details

__construct() public méthode

Constructor.
public __construct ( Collection $hostMapping ) : void
$hostMapping Illuminate\Support\Collection Locale to host mapping
Résultat void

determineLocale() public méthode

Determine the locale from the current host.
public determineLocale ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
Résultat string