PHP code example of guizoxxv / laravel-json-lang
1. Go to this page and download the library: Download guizoxxv/laravel-json-lang 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/ */
guizoxxv / laravel-json-lang example snippets
'input_paths' => [
'/path/to/file.php',
'/path/to/directory'
]
'input_paths' => [
'/lang/en/validation.php' => 'myPackage',
]
echo trans('myPackage::validation.
php artisan vendor:publish --provider="Guizoxxv\LaravelJsonLang\LaravelJsonLangServiceProvider"
php artisan laravel-json-lang:export