Open surencool4 opened 3 years ago
hi @surencool4
problem solved?
If you solve the problem, can you explain it to me?
thanks
Hi, I think you have an error in your code. 'attachment-post-trixFields' => request('attachment-post-trixFields') I guess it should be 'page' like this: 'attachment-page-trixFields' => request('attachment-page-trixFields')
create.blade.php
Livewire/Page.php public function create() { $this->validate(); $this->post = Page::create($this->modelData()); $this->modalFormVisible = false; $this->reset(); } public function modelData() { return [ 'title' => $this->title, 'slug' => $this->slug, 'content' => $this->content, 'page-trixFields' => request('page-trixFields'),
'attachment-post-trixFields' => request('attachment-post-trixFields') ]; }