PHP code example of wenslim / laravel-neditor

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

    

wenslim / laravel-neditor example snippets


$ php artisan vendor:publish --provider="Wenslim\Neditor\Providers\NeditorServiceProvider"

return [
    .
    .
    .
    'uploadType' => 'local',
    'imageUrlPrefix' => 'https://your-domain/',
];

.
.
.

'disks' => [
    .
    .
    .
    'neditor' => [
        'driver' => 'local',
        'root' => public_path('images'),
    ],
],

return [
    .
    .
    .
    'uploadType' => 'qiniu',
    'imageUrlPrefix' => 'https://你的七牛加速地址/',
];

.
.
.

'disks' => [
    .
    .
    .
    'qiniu' => [
        'access_key' => env('QINIU_ACCESS_KEY'),
        'secret_key' => env('QINIU_SECRET_KEY'),
        'bucket'     => env('QINIU_BUCKET'),
        'domain'     => env('QINIU_DOMAIN'),
    ],
],

.
.
.
<body>
    <textarea id="neditor" name="content"></textarea>
</body>

{!! neditor_assets() !!}