tiptapeditor

i am using tiptapeditor but when i submit something then it doesn't get stored in the database. this is in the resource
TiptapEditor::make('description')
->output(TiptapOutput::Json)
->columnSpanFull(),
TiptapEditor::make('description')
->output(TiptapOutput::Json)
->columnSpanFull(),
3 Replies
raheel3031
raheel3031OP3w ago
Array to string conversion (Connection: mysql, SQL: insert into `collections` (`name`, `slug`, `description`, `is_visible`, `parent_id`, `tags`, `images`, `media_id`, `updated_at`, `created_at`) values (SmartPhones, smartphones, ?, 1, ?, [], [], ?, 2025-01-08 21:03:32, 2025-01-08 21:03:32))
Array to string conversion (Connection: mysql, SQL: insert into `collections` (`name`, `slug`, `description`, `is_visible`, `parent_id`, `tags`, `images`, `media_id`, `updated_at`, `created_at`) values (SmartPhones, smartphones, ?, 1, ?, [], [], ?, 2025-01-08 21:03:32, 2025-01-08 21:03:32))
awcodes
awcodes2w ago
Array to string conversion exception implies that you are not casting the field to an array on the model.
raheel3031
raheel3031OP2w ago
Yes I am I will share the code

Did you find this page helpful?