jacobfitzp/nova-tinymce
TinyMCE field for Laravel Nova that replaces the default textarea with a rich-text editor, making it easy to add WYSIWYG content editing to Nova resources. Configure editor options and integrate formatted HTML fields in your admin panel.
composer require <vendor>/<package>
php artisan vendor:publish --tag=<package>-config
config/<package>.php first. Look for the upload route prefix, middleware group, disk, and validation rules.php artisan route:list --path=<upload-prefix>
After 1.0.3 the image upload endpoint is CSRF-protected, so confirm whether it sits behind web/VerifyCsrfToken or a package-defined middleware stack.@csrf and enctype="multipart/form-data". For an SPA, fetch the CSRF cookie first and send the token with the request.419 Page Expired unless they are updated or the route is explicitly excluded.@csrf. This is the simplest path and requires no changes for 1.0.3./sanctum/csrf-cookie before uploading, ensure withCredentials: true, and let axios read the XSRF-TOKEN cookie. Upload via FormData; do not manually set Content-Type.VerifyCsrfToken::$except, or front it with a stateful Sanctum request. Prefer narrowing an exclusion to the exact upload route rather than excluding a wildcard.$this->withoutMiddleware(\App\Http\Middleware\VerifyCsrfToken::class) only when testing upload logic, and add a separate test that asserts CSRF behavior for browser-facing flows. Use Storage::fake() and UploadedFile::fake()->image().X-CSRF-TOKEN header, _token field, or X-XSRF-TOKEN cookie. Browser clients using axios need the CSRF cookie endpoint and withCredentials.SESSION_DOMAIN, SANCTUM_STATEFUL_DOMAINS, and CORS supports_credentials correctly. A missing cookie is often a domain/config issue, not a package bug.VerifyCsrfToken::$except fixes API clients but removes protection for browser sessions. Prefer separate API and web routes if both consumers exist.php artisan config:clear and php artisan route:clear. Cached routes can hide middleware changes introduced by the release.php artisan route:list -v to see the full middleware stack for the upload endpoint. Confirm whether CSRF is applied by the package, the application’s web group, or both.419 path so future middleware changes are caught.How can I help you explore Laravel packages today?