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