PHP code example of laravelista / loki
1. Go to this page and download the library: Download laravelista/loki 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/ */
laravelista / loki example snippets
php artisan vendor:publish --provider="Laravelista\Loki\ServiceProvider" --tag=route
php artisan vendor:publish --provider="Laravelista\Loki\ServiceProvider" --tag=config
'supportedLocales' => ['hr', 'en'],
'defaultLocale' => 'en',
foreach (config('loki.supportedLocales') as $locale) {
URL::overrideParameters($locale, $model->{'slug_'.$locale});
}