From 229338f86489095e736eb15f63ae8adc67ac9d40 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Fri, 3 Jun 2022 03:40:13 +0330 Subject: [PATCH 1/2] docs: fix extra `)` --- docs/2 - authentication.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/2 - authentication.md b/docs/2 - authentication.md index eb09e22eb..c1ea6d865 100644 --- a/docs/2 - authentication.md +++ b/docs/2 - authentication.md @@ -39,9 +39,9 @@ helper('auth'); auth()->user(); // get the current user's id -auth()->id() +auth()->id(); // or -user_id() +user_id(); ``` ## Authenticator Responses @@ -95,7 +95,7 @@ the user that was logged in as `extraInfo()`. $result = auth()->attempt($credentials); if($result->isOK()) { - $user = $result->extraInfo()); + $user = $result->extraInfo(); } ``` From 258f63651dac3873da51532bb341b5dbd34b9033 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Fri, 3 Jun 2022 05:05:31 +0430 Subject: [PATCH 2/2] Update docs/2 - authentication.md Co-authored-by: kenjis --- docs/2 - authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2 - authentication.md b/docs/2 - authentication.md index c1ea6d865..976ee584c 100644 --- a/docs/2 - authentication.md +++ b/docs/2 - authentication.md @@ -94,7 +94,7 @@ the user that was logged in as `extraInfo()`. ```php $result = auth()->attempt($credentials); -if($result->isOK()) { +if ($result->isOK()) { $user = $result->extraInfo(); } ```