Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
negartarh committed Jan 5, 2024
1 parent 2cd4ae0 commit ee26acd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function index():\Illuminate\Http\Response
{
$users = User::latest()->take(10)->get();

# Alias of
# return apiwrapper()->ok($users);
return apiwrapper()->ok($users);
# or
return api_response()->ok($users);
}
```
Expand Down Expand Up @@ -290,7 +290,7 @@ public function login(Request $request):\Illuminate\Http\Response
->first();

if($user == null):
return APIResponse::accessDenied($user);
return APIResponse::accessDenied();
else:
...
}
Expand Down Expand Up @@ -428,6 +428,7 @@ and the result:
"time": "2024-01-05T02:42:10.636571Z"
}
```

## Built-in methods
In the table below, the predefined methods are given with the HTTP code and message text. All these values are accessible and changeable through the config file.

Expand Down

0 comments on commit ee26acd

Please sign in to comment.