PHP code example of pezhvak / laravel-translator
1. Go to this page and download the library: Download pezhvak/laravel-translator 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/ */
pezhvak / laravel-translator example snippets
bash
php artisan vendor:publish --tag="laravel-translator-config"
shell
php artisan migrate
shell
php artisan translator:translate
shell
php artisan translator:translate en,fa
shell
php artisan translator:translate [new_locale] --force