PHP code example of mputkowski / laravel-localization

1. Go to this page and download the library: Download mputkowski/laravel-localization library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mputkowski / laravel-localization example snippets


'web' => [
    \mputkowski\Localization\Middleware\VerifyLangCookie::class,
],

'providers' => [
    mputkowski\Localization\ServiceProvider::class,
],

'aliases' => [
    'Localization' => mputkowski\Localization\Facades\Localization::class,
],

'web' => [
    \mputkowski\Localization\Middleware\VerifyLangCookie::class,
],

use mputkowski\Localization\Facades\Localization;

Localization::setLocale('en');

php artisan vendor:publish --provider="mputkowski\Localization\ServiceProvider"

php artisan vendor:publish --provider="mputkowski\Localization\ServiceProvider"