PHP code example of alexeybob / laravel-translator
1. Go to this page and download the library: Download alexeybob/laravel-translator 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/ */
alexeybob / laravel-translator example snippets
return [
...
'providers' => [
...
AB\Laravel\Translator\ServiceProvider::class,
...
]
]
sh
$ php artisan translation:update {locale} {--force} {--dump-messages}
sh
$ php artisan translation:untracked {locale} {--force} {--dump-messages}
sh
php artisan translation:diff en