SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (SQL: insert into `posts` (`name`, `des`, `url`, `updated_at`, `created_at`) values (?, ?, ?, 2021-01-02 14:52:06, 2021-01-02 14:52:06)) code example

Example: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'image' cannot be null (SQL: update `logins` set `name` = testdata, `image` = ?, `logins`.`updated_at` = 2020-12-22 11:29:55 where `id` = 48)

//dd($request->all());


    $user=User::create([
            'name'=>$request->name,
           'email'=>$request->email,
         'password'=>bcrypt('password')
    ]);

     $profile=Profile::create([

Tags:

Sql Example