PHP code example of soluzione-software / laravel-localization

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

    

soluzione-software / laravel-localization example snippets




namespace App\Providers;

// ...
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use SoluzioneSoftware\Localization\Traits\MapsLocalizedRoutes;

class RouteServiceProvider extends ServiceProvider
{
    use MapsLocalizedRoutes;
    
    // ...

    public function map()
    {
        // ...

        $this->mapLocalizedWebRoutes($this->namespace);
    }
    
    // ...
}
bash
php artisan vendor:publish --tag=localization-config