Allow chaining on scope
This commit is contained in:
parent
89742dff26
commit
3b3c4ef7b9
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue