GTHell's avatar

Get auth()->user in test?

I want to test out my service that use auth()->user? How do I mock this?

0 likes
5 replies
GTHell's avatar
GTHell
OP
Best Answer
Level 3

I just google that I could use $this->be() to authenticate myself.

Please or to participate in this conversation.