PHP code example of mindtwo / laravel-missing-translations

1. Go to this page and download the library: Download mindtwo/laravel-missing-translations 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/ */

    

mindtwo / laravel-missing-translations example snippets


use mindtwo\LaravelMissingTranslations\Services\MissingTranslations;

$missing = app(MissingTranslations::class)
    ->repository('file')
    ->getMissingTranslationsForLocale('de');
bash
php artisan vendor:publish --tag=missing-translations-config
php artisan vendor:publish --tag=missing-translations-views
bash
php artisan migrate