Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel timestamps on pivot table

return $this->belongsToMany('TableModelClassName')->using('PivotTableModelClassName')->withTimestamps();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #timestamps #pivot #table
ADD COMMENT
Topic
Name
2+4 =