Skip to content

Commit

Permalink
Immediately call closure after binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehedi Hassan authored Aug 30, 2017
1 parent 5d1ebbd commit fe23bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/User/Entities/Sentinel/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function __call($method, $parameters)
if (config()->has($config)) {
$function = config()->get($config);

return $function->bindTo($this);
return ($function->bindTo($this))();
}

#i: No relation found, return the call to parent (Eloquent) to handle it.
Expand Down

0 comments on commit fe23bdd

Please sign in to comment.