PHP code example of bestmomo / laravel5-artisan-language
1. Go to this page and download the library: Download bestmomo/laravel5-artisan-language 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/ */
bestmomo / laravel5-artisan-language example snippets
return [
"scan_paths" => [
app_path(),
resource_path('views'),
resource_path('assets/js'),
],
"scan_pattern" => '/(@lang|__|\$t|\$tc)\s*(\(\s*[\'"])([^$]*)([\'"]+\s*(,[^\)]*)*\))/U',
"lang_path" => resource_path('lang'),
];
shell script
php artisan language:make fr