Skip to content

Commit 6bafe05

Browse files
authored
Merge pull request #445 from datamweb/fix-typo-mobile-api
docs: replace `reason` to `reason()`
2 parents 55f92fe + 34c4e66 commit 6bafe05

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)