laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.

Home Page:https://laravel.com/docs/passport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Passport cannot assign client because field 'id' doesn't have a default value

sunuilhamp opened this issue · comments

Passport Version

11.8

Laravel Version

10.47

PHP Version

8.1.25

Database Driver & Version

MySQL 8.2.0

Description

I run command php artisan passport:client after filling the necessary field I got this error Illuminate\Database\QueryException SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (Connection: mysql, SQL: insert intooauth_clients (user_id, name, secret, provider, redirect, personal_access_client, password_client, revoked, updated_at, created_at) values (?, Laravel Personal Access Client, OxTMDg54ES8TR7fMsgrqkLHWZyPo4s9cbo9fDt2M, ?, http://localhost, 1, 0, 0, 2024-03-08 04:18:57, 2024-03-08 04:18:57))

Steps To Reproduce

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!