-
Hi there, So I have implemented the package into a simple 'pages' table. I have gone ahead and created a page, i've then gone into an edit screen for the page and changed the page title...I then use the logic $page->create(['title' => 'new title']); By my understanding, this should then create a new record in the database with the same UUID and mark that as is_current and is_published, it should also take care of unmarking the previous version as 'is_current' or am I misunderstanding the package here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you're trying to update a record then you should use the |
Beta Was this translation helpful? Give feedback.
If you're trying to update a record then you should use the
update
method rather thancreate
sincecreate
will create a new record.