PHP code example of vwinck-dev / laravel-translator
1. Go to this page and download the library: Download vwinck-dev/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/ */
vwinck-dev / laravel-translator example snippets
// Blade
{{ __('Attach files by dragging & dropping, selecting or pasting them.') }}
// PHP
__('Attach files by dragging & dropping, selecting or pasting them.');
bash
php artisan lang:update
bash
php artisan vendor:publish --tag=translations