search

Home  >  Q&A  >  body text

laravel-Permission id primary key non-auto-increment insert data failure problem

Laravel-Permission permission package fails to write data when creating roles and permissions, displaying

General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `hema_roles` (` guard_name`, `name`, `updated_at`, `created_at`) values ​​(web, test role, 2022-10-12 02:36:10, 2022-10-12 02:36:10))

When doing data migration, the table auto-increment id is bigint unsigned long integer type. Is it a problem with the table structure or a problem with the component?

〆楊___〆楊___858 days ago1004

reply all(0)I'll reply

No reply
  • Cancelreply