PHP code example of afzidan / laravel-vue-translation

1. Go to this page and download the library: Download afzidan/laravel-vue-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/ */

    

afzidan / laravel-vue-translation example snippets


'providers' => [
    //
    Tohidplus\Translation\TranslationServiceProvider::class,
    //
  ];
 

return [
    'foo'=>[
        'bar'=>'Some message'
    ]
];
bash
 php artisan vendor:publish --provider="Tohidplus\Translation\TranslationServiceProvider"
 
bash
 php artisan VueTranslation:generate --watch=1