PHP code example of coderscantina / laravel-translations
1. Go to this page and download the library: Download coderscantina/laravel-translations 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/ */
coderscantina / laravel-translations example snippets
__('foo1'); // bar baz
__('foo2', ['quz' => 'qux']); // bar baz qux
bash
php artisan migrate
bash
php artisan translations:add foo1 'bar baz'
php artisan translations:add foo2 'bar baz {quz}'