- Require the package from composer:
composer require riomigal/languages
- Migrate database files, run:
php artisan migrate
- Publish public assets:
php artisan vendor:publish --tag=languages-public
- Publish config:
php artisan vendor:publish --tag=languages-config
- Run queue process:
php artisan queue:work --queue=languageProcessor
The queue process has the name languageProcessor, the value is configurable in the config file. To run the default queue or any other additional queue just add them before or after (first has higher priority) the languageProcessor, e.g.:
php artisan queue:work --queue=languageProcessor,default
- Change the queue connection in the .env file to: QUEUE_CONNECTION=database
- If it's a new project or the lang folder (/lang) wasn't published yet, run:
php artisan lang:publish