PHP code example of laraeast / laravel-vue-i18n-generator

1. Go to this page and download the library: Download laraeast/laravel-vue-i18n-generator 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/ */

    

laraeast / laravel-vue-i18n-generator example snippets


Laraeast\VueInternationalizationGenerator\GeneratorProvider::class,

return [
    'hello' => 'Hello :name',
];

<div class="message">
    <p>{{ trans('message.hello', ['name' => 'visitor']) }}</p>
</div>
config/app.php

php artisan vendor:publish --provider="Laraeast\VueInternationalizationGenerator\GeneratorProvider"

php artisan vue-i18n:generate

php artisan vue-i18n:generate

php artisan vue-i18n:generate --multi{-locales}