You can read the guide from reference below, or just clone this repo. (the code in this repo is a little different than the official guide)
- clone this repo
- add env file and configure your database
- php artisan migrate and php artisan jwt:secret
- see the routes/web.php, you can use postman and try