Skip to content

Commit cd1c34f

Browse files
committed
wi
1 parent 7cd3b3a commit cd1c34f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ Each `api` has authentication, and testing it via HTTP Client (ie postman) we sp
232232
]
233233
```
234234

235-
And send the request with the `Authorization`
235+
And send the request with the `Authorization` header value `testing`.
236+
237+
Note: Make sure the `DevSanctumAuthMiddleware` is placed before the `api` middleware.
236238

237239
### Customize resolved user
238240

@@ -245,10 +247,10 @@ use App\Models\User;
245247
use Binarcode\LaravelDeveloper\Middleware\DevSanctumAuthMiddleware;
246248

247249
'middleware' => [
248-
'api',
249250
DevSanctumAuthMiddleware::resolveUserUsing(function() {
250251
return User::first();
251252
});
253+
'api',
252254
],
253255
```
254256
## Testing

0 commit comments

Comments
 (0)