1

I have this error

SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value

insert into `oauth_clients` (
`user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `updated_at`, `created_at`
) 
values 
(
?, Laravel Personal Access Client, PH9RQTXPcpKZtaLl21NYiShxsBKtqB6ZCFgKlspz, ?, http://localhost, 1, 0, 0, 2021-12-18 18:35:17, 2021-12-18 18:35:17
)

why he throws this error? can you help me?

SuperDJ
  • 7,488
  • 11
  • 40
  • 74
  • Have you tried changing mysql config : 'strict' => false. it is in database.php – parastoo Dec 18 '21 at 19:04
  • Does this answer your question? [Field 'id' doesn't have a default value?](https://stackoverflow.com/questions/25865104/field-id-doesnt-have-a-default-value) – SuperDJ Dec 18 '21 at 19:45
  • I found the issue , in my config file did not have passport.php file, i dont now why , but it is fact – Ben1105-SVG Dec 18 '21 at 23:42

2 Answers2

0

In my case, my config folder did not have passport.php file. I don't have an idea why.

Jhourlad Estrella
  • 3,545
  • 4
  • 37
  • 66
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 19 '21 at 01:19
-1

in my config file passport.php

  1. client_uuids=true

  2. php artisan passport:install

  3. client_uuids=false

General Grievance
  • 4,555
  • 31
  • 31
  • 45
  • 3
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 25 '22 at 16:13