PHP code example of spatie / filament-markdown-editor
1. Go to this page and download the library: Download spatie/filament-markdown-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/ */
spatie / filament-markdown-editor example snippets
use Spatie\FilamentMarkdownEditor\MarkdownEditor;
public static function form(Form $form): Form
{
return $form
->schema([
// other fields ...
MarkdownEditor::make('text')
->fileAttachmentsDisk('admin-uploads')
->fileAttachmentsVisibility('public')
->