PHP code example of statikbe / laravel-sir-trevor

1. Go to this page and download the library: Download statikbe/laravel-sir-trevor 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/ */

    

statikbe / laravel-sir-trevor example snippets


return [
    'class' => 'sir-trevor',
    
    'blocktypes' => ['Text', 'List', 'Quote', 'Video', 'Tweet', 'Heading', 'RichText', 'ImageExtended'],
    
    'js_path' => '/js/sir-trevor/sir-trevor.js',
    
    'css_path' => '/css/sir-trevor/sir-trevor.css',
    
    'icons_path' => '/assets/icons/sir-trevor/sir-trevor-icons.svg',
    
    'upload_url' => '/sir-trevor/upload',
    
    'upload_directory' => 'public/uploads',
    
    'language' => 'nl'
    
];

Collective\Html\HtmlServiceProvider::class,

'Form' => Collective\Html\FormFacade::class,
'HTML' => Collective\Html\HtmlFacade::class,
bash
php artisan vendor:publish --provider="Statikbe\SirTrevor\SirTrevorServiceProvider"