PHP code example of thinhpd / translate

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

    

thinhpd / translate example snippets

 bash
php artisan infyom:publish --localized 
php artisan infyom.publish:layout --localized 
 bash
php artisan vendor:publish --provider="Thinhpd\Translate\TranslateServiceProvider"
 bash
           <li style="width: 50px;">
                            <a href="{{ route('lang',['lang' => 'vi']) }}" >VI
                            </a>
                        </li>
                        <li style="width: 50px;">
                            <a href="{{ route('lang',['lang' => 'en']) }}"  >EN
                            </a>
                        </li>