=== Staff Login API Test === 1. Testing Login Endpoint POST http://localhost:8001/api/staff/login Request: {"email":"admin@example.com","password":"password"} Response Status: 0 Response: null Login failed. Cannot test protected endpoints. Please check your credentials and ensure the server is running. === Test Complete === === Usage Instructions === 1. Make sure your Laravel server is running: php artisan serve 2. Update the $testCredentials with actual staff credentials 3. Run this script: php test_staff_api.php 4. Or use curl commands directly: # Login: curl -X POST http://localhost:8001/api/staff/login \ -H "Content-Type: application/json" \ -d '{"email":"admin@example.com","password":"password"}' # Get Staff Info (replace TOKEN with actual token): curl -X GET http://localhost:8001/api/staff/me \ -H "Authorization: Bearer TOKEN" # Logout: curl -X POST http://localhost:8001/api/staff/logout \ -H "Authorization: Bearer TOKEN"