PHP code example of hexters / logat

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

    

hexters / logat example snippets


return [

    'default' => 'id',

    'locales' => ['en', 'ms', 'id', 'ja'],

    'sources' => [
        'resources/views',
        'app',
    ],

    'functions' => ['__', 'trans', '@lang'],

    'sorting' => true,
];
bash
php artisan vendor:publish --provider="Hexters\Logat\LogatServiceProvider"
bash
php artisan logat:collect
bash
php artisan logat:clean