PHP code example of concept7 / filament-deepl-translations

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

    

concept7 / filament-deepl-translations example snippets


    'deepl' => [
        'api_key' => env('DEEPL_API_KEY'),
    ],

RichEditor::make('body')
    ->label('Body')
    ->translatable() // add this line to make field translatable. That's it!
    ->

use Concept7\FilamentDeeplTranslations\Actions\DeeplBulkTranslatableAction;

    ->bulkActions([
        DeeplBulkTranslatableAction::make(),
    ])

use Concept7\FilamentDeeplTranslations\Traits\Deepl;

use Deepl;
bash
php artisan vendor:publish --tag="filament-deepl-translations-languages"