Why my update is not working?

Posted 3 days ago by darrenchan

I am wondering why my update code is not working? Here is my code.

Post::where('id', 1)->update([
    'title' => 'This is my new title',
    'details' => 'This is my new details that should be update.'
]);

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.