Skip to content

Commit

Permalink
fix detach when passing Collection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed Sep 15, 2015
1 parent 7f89a2f commit e8f57e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public function detach($id = array(), $touch = true)
if ( ! $id instanceof Model && ! $id instanceof Collection)
{
$id = $this->modelsFromIds($id);
} elseif ( ! is_array($id))
} elseif ( ! is_array($id) && !$id instanceof Collection)
{
$id = [$id];
}
Expand Down

0 comments on commit e8f57e7

Please sign in to comment.