This is a package for translating the contents of different Laravel projects.
Run the following command to pull in the latest version:
composer require jobmetric/translation
Add the service provider to the providers array in the config/app.php config file as follows:
'providers' => [
...
JobMetric\Translation\TranslationServiceProvider::class,
]
Copy the config
file from vendor/jobmetric/translation/config/config.php
to config
folder of your Laravel application and rename it to translation.php
Run the following command to publish the package config file:
php artisan vendor:publish --provider="JobMetric\Translation\TranslationServiceProvider" --tag="translation-config"
You should now have a config/translation.php
file that allows you to configure the basics of this package.
You need to publish the migration to create the translations
table:
php artisan vendor:publish --provider="JobMetric\Translation\TranslationServiceProvider" --tag="translation-migrations"
After that, you need to run migrations.
php artisan migrate