Skip to content
Advertisement

How to only use created_at in Laravel

I want only use created_at , how to do it?

I know:

This can custom timestamps name

JavaScript

This can disable timestamps

JavaScript

Advertisement

Answer

Eloquent does not provide such functionality out of the box, but you can create it on your own using the creating event callback:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement