Before installation please make sure tymon/jwt-auth
composer require tymon/jwt-auth
composer require jiteshdhamaniya/jwt-tests --dev
php artisan make:jwt-tests
Edit phpunit.xml
file by adding these two lines between <php>
tags:
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
Alternatively, use different database than sqlite, but also different from the one used for development.
By Default it uses endpoint /api
if you do have some other endpoint such as /api/v1
you can change using ```endpoint`` option. like this
php artisan make:jwt-tests --endpoint=api/v1