PHP code example of vis / translations_l5

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

    

vis / translations_l5 example snippets


 	array(
            'title' => 'Переводы',
            'icon'  => 'language',
            'link'  => '/translations/phrases',
            'check' => function() {
                return true;
            }
        ),

 	{{__('привет')}}

 	{{__t('привет')}}

 	php artisan translate:generate

 	php artisan translate:table {tables} {fields}

  <script src="{{route('translate_js', ['lang' => config('app.locale')])}}"></script>
json
   php artisan migrate --path=vendor/vis/translations_l5/src/Migrations
json
   php artisan vendor:publish --tag=translations --force