How to test authentication via API with Laravel Passport?
I'm trying to test the authentication with Laravel's Passport and there's no way... always received a 401 of that client is invalid, I'll leave you what I've tried: My phpunit configuration is the one that comes from base with laravel tests/TestCase.php abstract class TestCase extends BaseTestCase { use CreatesApplication, DatabaseTransactions; protected $client, $user, $token; public function setUp() { parent::setUp(); $clientRepository = new ClientRepository(); $this->client = $clientRepository->createPersonalAccessClient( null, 'Test Personal Access Client', '/' ); DB::table('oauth_personal