1 year ago

Why my update is not working?

Posted 1 year 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.