lsfiege / laravel-sanctum-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Sanctum API Token Authentication

🚀 Usage

  1. Start server with php artisan serve
  2. Send a POST request to /api/auth/register including the following params: name, email, password and password_confirmation.
  3. Copy obtained authentication token and use it by sending a GET request to /api/me including the Authentication: Bearer <token> header.

About


Languages

Language:PHP 81.9%Language:Blade 17.4%Language:Shell 0.8%