PHP code example of mileswu / filament-quill-editor

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

    

mileswu / filament-quill-editor example snippets


use MilesWu\FilamentQuillEditor\QuillEditor;

QuillEditor::make('content')
    ->fileAttachmentsDisk('s3')
    ->fileAttachmentsDirectory(fn ($record) => "illustrations/{$record->id}")
    ->fileAttachmentsVisibility('public')
    ->maxHeight(500)
    ->toolbarButtons([
        ['bold', 'italic', 'underline', 'strike'],
        ['h1', 'h2', 'h3'],
        ['blockquote', 'codeBlock'],
        ['orderedList', 'bulletList'],
        ['link', 'image'],
        ['clean'],
    ]);
bash
php artisan filament:assets