PHP code example of fzayne / lara-translation

1. Go to this page and download the library: Download fzayne/lara-translation 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/ */

    

fzayne / lara-translation example snippets


    'directories' => [
        app_path('View'),
        resource_path('views'),
    ],


      'patterns' => [
        'trans',  
        '__',     
        '@lang',  
    ],


bash
php artisan vendor:publish --tag=lara-translation-config
bash
php artisan transkeys:export {locales?*}
bash
php artisan transkeys:export en fr ar