Skip to content

Commit 34c4e66

Browse files
committed
fix: replece reason to reason()
1 parent 55f92fe commit 34c4e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/mobile_apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LoginController extends BaseController
4444
$result = auth()->attempt($this->request->getPost(setting('Auth.validFields')));
4545
if (! $result->isOK()) {
4646
return $this->response
47-
->setJSON(['error' => $result->reason])
47+
->setJSON(['error' => $result->reason()])
4848
->setStatusCode(401);
4949
}
5050

0 commit comments

Comments
 (0)