PHP code example of niels-numbers / laravel-localizer
1. Go to this page and download the library: Download niels-numbers/laravel-localizer 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/ */
niels-numbers / laravel-localizer example snippets
Route::localize(function () {
Route::get('/about', AboutController::class)->name('about');
});