Skip to content
Advertisement

Tag: laravel-5.7

SQLSTATE[23000]: Integrity constraint violation: 1048 laravel 5.7

I am getting error in Laravel 5.7: IlluminateDatabaseQueryException SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘name’ cannot be null (SQL: insert into stores (name, matric, phone, email, password, updated_at, created_at) values (?, ?, ?, ?, ?, 2019-10-01 16:29:49, 2019-10-01 16:29:49)) This is my form: This is UserController: This is the Migration: Answer You are missing name attribute in your html form.

Advertisement