PHP code example of crumby / route-locale

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

    

crumby / route-locale example snippets


> composer san vendor:publish --provider="Crumby\Routelocale\RoutelocaleServiceProvider" --tag=config

'providers' => [
    ......................
    'Crumby\Routelocale\RoutelocaleServiceProvider',
    ........................
 ];
 
 'aliases' => [ 
    ......................
    'Routelocale' => 'Crumby\Routelocale\Facades\Routelocale',
    ......................
 ];

$allLocalizedUrls = \Routelocale::getAllLocalizedRoutes(null, false, true);