tzookb
2287
7
Testing

laravel testig request setting header

Posted 4 years ago by tzookb

Im trying to test the jwt authentication,

so I have a test that sets a request with a token in the header, but I simply cant place the token in the header.

this is what I need:

 Authorization: Bearer {yourtokenhere}

this is from this package

https://github.com/tymondesigns/jwt-auth/wiki/Authentication

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.