Skip to content

Glossary: Laravel

actingAs

Also written: Sanctum::actingAs

A test method that sends the next requests as a given logged-in user. Sanctum::actingAs does the same for API routes with a token.

Where the book teaches it

Related terms

PestFactorySanctum