PHP code example of laravel-tiptap / editor

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

    

laravel-tiptap / editor example snippets


'disks' => [
    'public_uploads' => [
        'driver' => 'local',
        'root' => public_path('userfiles'),
        'url' => env('APP_URL').'/userfiles',
        'visibility' => 'public',
    ],
],

$middleware->validateCsrfTokens(except: [
    'editor/*',
]);
bash
php artisan vendor:publish --tag=editor-config
php artisan vendor:publish --tag=editor-views
php artisan vendor:publish --tag=editor-assets
blade
<x-editor
    name="content"
    :value="$article->content"
    :config="['placeholder' => 'Start writing...']"
    height="500px"
    upload-url="/editor/upload"
/>
bash
php artisan vendor:publish --tag=editor-config