Install package
composer require filipponik/laravel-translate-analyzer --dev
Add service provider to your config/app.php
file:
...
'providers' => [
...
\Filipponik\LaravelTranslateAnalyzer\Providers\TranslateServiceProvider::class,
],
...
If you want to get duplicated values in your lang files, use command below:
php artisan translate:check-duplicates
If you want to analyze your code and fill lang files, use command below:
php artisan translate:fill-files