PHP code example of ahmedessam / laravel-autotranslate

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

    

ahmedessam / laravel-autotranslate example snippets


'patterns' => [
    '/trans\([\'\"](.*?)[\'\"]\)/',
],

'directories' => [
    'custom_directory',
],

'default_directory' => 'custom_lang',
bash
php artisan lang:publish
bash
php artisan sync:translations
bash
php artisan vendor:publish --tag=autotranslate-config