Search code examples
laraveleloquentlaravel-query-builder

Laravel: Form add is ok . But when I want to update it gives me error


Controller update

Error

If I add data in form, I can do it successfully . But whenever I want to update , it gives me error


Solution

  • You will require updated_at column in your Database, add this in migration : $table->timestamps(); then re run the migration