You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
{{ __('Save Page') }}
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')
];
}
The text was updated successfully, but these errors were encountered: