PHP code example of timo-de-winter / filament-monaco-editor
1. Go to this page and download the library: Download timo-de-winter/filament-monaco-editor 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/ */
timo-de-winter / filament-monaco-editor example snippets
return [
'table' => 'editor_codes',
];
public static function form(Form $form): Form
{
return $form->schema([
\TimoDeWinter\FilamentMonacoEditor\Filament\Forms\Components\MonacoEditor::make('code')
->language('php')
->height('500px'),
]);
}
class YourModel extends Model implements \TimoDeWinter\FilamentMonacoEditor\Contracts\HasMonacoEditor
{
use \TimoDeWinter\FilamentMonacoEditor\Concerns\InteractsWithMonacoEditor;
}