PHP code example of tomatophp / filament-translation-component

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

    

tomatophp / filament-translation-component example snippets


use \TomatoPHP\FilamentTranslationComponent\Components\Translation;

Translation::make('title')
    ->label('Title')
bash
php artisan vendor:publish --tag="filament-translation-component-config"
bash
php artisan vendor:publish --tag="filament-translation-component-lang"