Skip to content

SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "categoryID" violates not-null constraint  #101

@junmingyeo

Description

@junmingyeo

Hi, I have chance upon this great Laravel E commerce Tutorial, it have all been a smooth flow until now where I have this issue when trying to create a Category in Voyager itself.

I am using the following versions for my installations:

  • PHP v7.4.11
  • Laravel v8.14
  • Voyager v1.4
  • Database: Posgresql v12.1

Below are the details of the error:
image

Below are my table column names in pgsql:
image

This are my migration method in my codes:
image

This is my Category Model codes:
image

Please kindly assist on this if anyone have the solution for it!
P.S. Pardon for my poor posting of questions as this is my first time using github

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions