Skip to content

Commit

Permalink
Added timestamps to test relation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmongeau committed Jul 10, 2018
1 parent d501301 commit 68949c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/fixture/TestModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function children() {

public function childrenWithPivot() {
return $this->belongsToMany(TestChildModel::class, 'tests_children_pivot', 'test_id', 'child_id')
->withPivot('handle');
->withPivot('handle')
->withTimestamps();
}
}

0 comments on commit 68949c8

Please sign in to comment.