PHP code example of klisl / laravel-locale

1. Go to this page and download the library: Download klisl/laravel-locale 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/ */

    

klisl / laravel-locale example snippets


Klisl\Locale\LocaleServiceProvider::class,

<a href="{{ route('home') }}">Home</a>

<a href="{{ Klisl\Locale\LocaleMiddleware::getLocale() .'/home' }}">Home</a>

php artisan vendor:publish --provider="Klisl\Locale\LocaleServiceProvider"