How to Disable Laravel's Timestamps in Your Models #laravel #shorts

preview_player
Показать описание
In this tutorial, you'll learn how to take control of your Laravel database by disabling the auto-generation of timestamps for your models. By overriding the $timestamps property and creating the created_at and updated_at columns manually, you can customize your database to fit your needs and avoid auto-generated timestamps. Follow these simple steps to gain greater control over your Laravel projects and tailor your database to your specific needs.

📚 New Udemy Course

🔥 Resources

#laravel #filamentphp #shorts #codewithdary
Рекомендации по теме
Комментарии
Автор

Yes, I did recently. Was working on a new Laravel application with existing database that doesn't have a timestamp in it

oyinbrakemimichaelmenebray
Автор

I haven't yet, it's useful. Thanks.

lesssass
Автор

if i disabled on laravel, can i still use timestamp feature on mysql as an alternative ?

farorasyid
Автор

How to change case for timestamp columns?

sowmiyap
Автор

But why would I want to remove it? 😂😂😂

guyrandalf