라라벨/NOVA
nova tiny 패키지 설치
땀모
2020. 1. 5. 20:46
1 | composer require emilianotisato/nova-tinymce | cs |
api-key 를 만든다.
config/nova.php 아래의 소스 추가
1 | 'tinymce_api_key' => env('TINYMCE_API_KEY'), | cs |
1 | php artisan vendor:publish --provider="Emilianotisato\NovaTinyMCE\FieldServiceProvider" | cs |
사용방법
1 2 3 4 5 6 7 | NovaTinyMCE::make('body')->options([ 'plugins' => [ 'lists preview hr anchor pagebreak image wordcount fullscreen directionality paste textpattern' ], 'toolbar' => 'undo redo | styleselect | bold italic forecolor backcolor | alignleft aligncenter alignright alignjustify | image | bullist numlist outdent indent | link', 'use_lfm' => true ]), | cs |
1 | composer require laravel/helpers | cs |
https://unisharp.github.io/laravel-filemanager/installation
1 | composer require unisharp/laravel-filemanager:~1.8 | cs |
1 | php artisan vendor:publish --tag=lfm_config | cs |
1 | php artisan vendor:publish --tag=lfm_public | cs |
캐시를 지우려면 명령실행
1 2 | php artisan route:clear php artisan config:clear | cs |