PHP code example of martin6363 / filament-ai-translator
1. Go to this page and download the library: Download martin6363/filament-ai-translator 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/ */
martin6363 / filament-ai-translator example snippets
use Martin6363\FilamentAiTranslator\FilamentAiTranslatorPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentAiTranslatorPlugin::make(),
]);
}
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Section;
Section::make('Content')
->schema([
TextInput::make('title')
->