%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/camillo/camillo-api-master/config/
Upload File :
Create Path :
Current File : /var/www/html/camillo/camillo-api-master/config/localize-middleware.php

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Localization Determiner.
    |--------------------------------------------------------------------------
    |
    | Set the determiner to use for localizing the application. You can pick
    | from "parameter" (the default), "host", "cookie", "header" or "session".
    |
    | You may also set an array of determiners, and then the locale will be
    | determined by the first that finds a match.
    |
    */

    'driver' => 'parameter',

    // 'driver' => [
    //     'session',
    //     'cookie',
    //     'parameter'
    // ],

    /*
    |--------------------------------------------------------------------------
    | Locale Request Parameter.
    |--------------------------------------------------------------------------
    |
    | Define the name of the request parameter that will contain your
    | application's locale. Configures the "parameter" driver.
    |
    */

   'parameter' => 'locale',

   /*
    |--------------------------------------------------------------------------
    | Locale Cookie Name.
    |--------------------------------------------------------------------------
    |
    | Define the name of the cookie that will contain your application's locale.
    | Configures the "cookie" driver.
    |
    */

   'cookie' => 'locale',

   /*
    |--------------------------------------------------------------------------
    | Locale Session Key Name.
    |--------------------------------------------------------------------------
    |
    | Define the name of the session key that will contain your application's
    | locale. Configures the "session" driver.
    |
    */

   'session' => 'locale',

   /*
    |--------------------------------------------------------------------------
    | Locale Header Name.
    |--------------------------------------------------------------------------
    |
    | Define the name of the header to use to determine the user's locale. This
    | configures the "header" driver, and defaults to "Accept-Language".
    |
    | See https://www.w3.org/International/questions/qa-accept-lang-locales for
    | more information on determining the user's locale from Accept-Language
    |
    */

   'header' => 'Accept-Language',

    /*
    |--------------------------------------------------------------------------
    | Locale/Host Mapping.
    |--------------------------------------------------------------------------
    |
    | Define a mapping of your application locales to the different hosts your
    | application will be served from. If a host doesn't match,
    | app.fallback_locale will be used. Configures the "host" driver.
    |
    */

    'hosts' => [
        'en' => 'www.example.co.uk',
        'fr' => 'www.example.fr'
    ]
];

Zerion Mini Shell 1.0