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

well, you should have a look here: and here

long storry short. -> In your model (Music), add the following somewhere near the top

 public $timestamps = false;

OR in your migration, add


and rerun the migration

Last updated 2 years ago.

So did you read the docs?

Once a model is defined, you are ready to start retrieving and creating records in your table. Note that you will need to place updated_at and created_at columns on your table by default. If you do not wish to have these columns automatically maintained, set the $timestamps property on your model to false.

If you want timestamp, just add $table->timestamps(); to your migration.

Last updated 2 years ago.

Oh. Now i feel stupid!

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

d1p d1p Joined 28 Mar 2014


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

Your logo here?

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

© 2024 - All rights reserved.