i am newbie in laravel4. is there a way to set automatically the timestamps() field (created_at, updated_ad) in table ?? may be like Doctrine2 lifecycle callback onUpdate and onDelete event in entity. thanks before
I think you look for something like that. In the correct answer you see that there are several event listeners for created/updated/deleted.
If you use Eloquent then this will already be the case. It is mentioned in the Laravel documentation under Database \ Eloquent ORM \ Timestamps.
Timestamps
By default, Eloquent will maintain the created_at and updated_at columns on your database table automatically. Simply add these datetime columns to your table and Eloquent will take care of the rest.