PHP code example of laravel-admin-ext / simplemde

1. Go to this page and download the library: Download laravel-admin-ext/simplemde 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/ */

    

laravel-admin-ext / simplemde example snippets



    'extensions' => [

        'simplemde' => [
        
            // Set to false if you want to disable this extension
            'enable' => true,
            
            // If you want to set an alias for the calling method
            //'alias' => 'markdown',
            
            // Editor configuration
            'config' => [
                
            ]
        ]
    ]


    'config' => [
        'autofocus'   => true,
        'placeholder' => 'xxxx',
        ....
    ]

$form->simplemde('content');

$form->simplemde('content')->height(500);

$form->markdown('content');
bash
php artisan vendor:publish --tag=laravel-admin-simplemde