- TinyMCE 6
- Laravel Filemanager
You can install the package via composer:
composer require daothanh/tinymce
Publish the assets:
php artisan vendor:publish --tag="daothanh-tinymce-assets"
Publish the Laravel Filemanager’s config and assets :
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
Create symbolic link :
php artisan storage:link
Optionally, you can publish the config file for customization:
php artisan vendor:publish --tag="daothanh-tinymce-config"
use Daothanh\Tinymce\Forms\Components\TinymceField;
TinymceField::make('description');
To use a predefined simple editor, you may use the profile() method:
TinymceField::make('description')->profile('simple');