Hi, I am using timestamp. The field is correctly bound to the database as it shows the correct date from the db. But when I modify and save the time and date, no change occurs.
I have added following line in my model for dates.
protected $dates = ['published_at', 'unpublished_at'];
Hi, I am using timestamp. The field is correctly bound to the database as it shows the correct date from the db. But when I modify and save the time and date, no change occurs.
I have added following line in my model for dates.
protected $dates = ['published_at', 'unpublished_at'];
and these two lines for rendering the fields
FormItem::timestamp('published_at', 'Publish at');
FormItem::timestamp('unpublished_at', 'Unpublish at');
In db, the type of published_at and unpublished_at is timestamp.
Can you guide me, why the fields are not modifying?