I'm creating a row in pivot table using the following attach statement.
$music = Music::find(1);
$music->users()->attach(1);
This inserting a row in pivot table, but it is not updating the timestamp. The timestamp remains as 0000-00-00 00:00:00
.
Is there any way to update the timestamps in pivot table?