Installation
Requirements
PHP 8.1 or higher
Laravel 9.* or higher
Nova 4
GD or Imagick
FFMPEG (required for larupload usage)
\
Installation
1. Install the package using composer
composer require mostafaznv/nova-ckeditor
2. Publish the configuration, migrations, models, resources, and snippets
php artisan vendor:publish --provider="Mostafaznv\NovaCkEditor\FieldServiceProvider"
3. Prepare the migration, configurations and models
After publishing stubs, essential Image
, Video
, Audio
and File
classes will be created in the app/Models
and app/Nova/Resources
directories respectively. These classes are used for the media-picker
in the CKEditor field.
You should create a disk in config/filesystems.php
:
'disks' => [
'image' => [
'driver' => 'local',
'root' => public_path('uploads/image'),
'url' => env('APP_URL') . '/uploads/image',
]
]
4. Migrate
php artisan migrate
Last updated