Skip to content

VlakasWB/lumen-jwt

Repository files navigation

#ENGLISH This project already has an auth token sanctum register, login and logout

HOW TO WORK

  1. cp .env.example .env
  2. Edit .env
  3. DB_DATABASE=your-database-name
  4. DB_USERNAME=your-database-username
  5. DB_PASSWORD=your-database-password
  6. composer update
  7. php artisan jwt:secret
  8. php -S localhost:8000 -t public
  9. Check on Postman
  10. Don't forget uncomment code route get /key (in folder routes file web.php) for APP KEY
  11. Open browser http://localhost:8000/key
  12. Copy to .env in APP_KEY=
  13. Finish!

============

#INDONESIA

Proyek ini sudah memiliki auth token sanctum register, login dan logout

CARA MENGGUNAKAN

  1. cp .env.example .env
  2. Edit DB_DATABASE=nama-database-kamu
  3. composer update
  4. php artisan serve
  5. Cek di Postman
  6. composer update
  7. php artisan jwt:secret
  8. php -S localhost:8000 -t public
  9. Check on Postman
  10. Jangan lupa buka comment kode route yang get /key (Di dalam folder routes file web.php) untuk nanti di isi pada APP_KEY
  11. Open browser http://localhost:8000/key
  12. Copy to .env in APP_KEY=
  13. Selesai!

#POSTMAN

  • REGISTER

image

  • LOGIN

image

  • LOGOUT

image

  • GET USER

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published