Commit fe23bdd9 authored by Mehedi Hassan's avatar Mehedi Hassan Committed by GitHub

Immediately call closure after binding

parent 5d1ebbda
...@@ -114,7 +114,7 @@ class User extends EloquentUser implements UserInterface, AuthenticatableContrac ...@@ -114,7 +114,7 @@ class User extends EloquentUser implements UserInterface, AuthenticatableContrac
if (config()->has($config)) { if (config()->has($config)) {
$function = config()->get($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. #i: No relation found, return the call to parent (Eloquent) to handle it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment