We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reason
reason()
1 parent 55f92fe commit 34c4e66Copy full SHA for 34c4e66
docs/guides/mobile_apps.md
@@ -44,7 +44,7 @@ class LoginController extends BaseController
44
$result = auth()->attempt($this->request->getPost(setting('Auth.validFields')));
45
if (! $result->isOK()) {
46
return $this->response
47
- ->setJSON(['error' => $result->reason])
+ ->setJSON(['error' => $result->reason()])
48
->setStatusCode(401);
49
}
50
0 commit comments