Allow chaining on scope

This commit is contained in:
Toby Zerner 2020-01-08 17:45:18 +10:30
parent 89742dff26
commit 3b3c4ef7b9
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ abstract class Relationship extends Field
public function scope(callable $callback) public function scope(callable $callback)
{ {
$this->listeners['scope'][] = $callback; $this->listeners['scope'][] = $callback;
return $this;
} }
public function getType() public function getType()