PHP code example of nycorp / lang-helper

1. Go to this page and download the library: Download nycorp/lang-helper 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/ */

    

nycorp / lang-helper example snippets


LangHelper::auth()->password()->reset();
LangHelper::validation()->email();
LangHelper::validation()->email($value);

LangHelper::navigation()->home();
// will return navigation.home

return [
    'excluded_directories' => [
        'vendor'
    ],
    'excluded_lang_files' => [
        // auth
    ],
];

bash
php artisan lang:generate
bash
php artisan lang:generate --detect-unused
bash
php artisan vendor:publish --tag="lang-helper-config"