Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Well mysql log would tell you more but im suspecting CreatedAt and UpdatedAt fields does not exists.As far i know by default you need to have them...

[EDIT]Sorry didnt noticed you turned off timestamp's.Anyway check mysql and php log's for errors it will tell you more...

Last updated 2 years ago.
0

qICEp said:

Well mysql log would tell you more but im suspecting CreatedAt and UpdatedAt fields does not exists.As far i know by default you need to have them...

[EDIT]Sorry didnt noticed you turned off timestamp's.Anyway check mysql and php log's for errors it will tell you more...

I've checked and they don't report any errors, I'm not using mysql, I'm using Sql server. I really don't understand what can it be. Maybe the SQL queries for updating and deleting are wrong, but I don't know how to check them.

Last updated 2 years ago.
0

I am also using capsule and I cannot get to update . I am using sqlite. It works fine on mysql though.

Last updated 2 years ago.
0

Did you define either $fillable or $guarded in the model?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jcostinha jcostinha Joined 18 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.