PHP code example of 3x1io / filament-translations

1. Go to this page and download the library: Download 3x1io/filament-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/ */

    

3x1io / filament-translations example snippets


Illuminate\Translation\TranslationServiceProvider::class,

Spatie\TranslationLoader\TranslationServiceProvider::class,

    'web' => [
        //...
        \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class,
    ],

    'middleware' => [
        'auth' => [
            //...
            \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class
        ],
        //...
    ];
bash
php artisan vendor:publish --tag="filament-translations"
php artisan vendor:publish --tag="filament-translations-config"
php artisan migrate
bash
php artisan optimize:clear