laravel attach not created_at code example
Example: laravel timestamps on pivot table
return $this->belongsToMany('TableModelClassName')->using('PivotTableModelClassName')->withTimestamps();
return $this->belongsToMany('TableModelClassName')->using('PivotTableModelClassName')->withTimestamps();