From 515b28fb46f8abd71a322810981713b52ab8da0a Mon Sep 17 00:00:00 2001 From: Dmitry Groza Date: Wed, 12 Jul 2017 14:43:55 +0300 Subject: [PATCH] Code style fixes --- src/Rutorika/Sortable/ToSortedManyTrait.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Rutorika/Sortable/ToSortedManyTrait.php b/src/Rutorika/Sortable/ToSortedManyTrait.php index 40b1427..e74fedc 100644 --- a/src/Rutorika/Sortable/ToSortedManyTrait.php +++ b/src/Rutorika/Sortable/ToSortedManyTrait.php @@ -165,4 +165,14 @@ abstract public function withPivot($columns); * @return \Illuminate\Database\Query\Builder */ abstract protected function newPivotQuery(); + + /** + * Detach models from the relationship. + * + * @param mixed $ids + * @param bool $touch + * + * @return int + */ + abstract public function detach($ids = null, $touch = true); }