CareSet / DURC

DURC is reverse CRUD
MIT License
3 stars 2 forks source link

Dynamically control updated_at, created_at and delete_at #21

Closed ftrotter closed 6 years ago

ftrotter commented 6 years ago

Right now you can choose the times in the form. But these fields are actually internal mechanisms for Laravel Eloquent models to understand themselves and not really "part of the data".

Rather than exposing these date fields, they should always be exempted from the generated form, and the controller should be smart enough to set created_at to now() when an object is created and updated_at to now() when an object is modified and deleted_at to now() when an object is soft-deleted...

See #7 for more info