title: SQLSTATE[HY000]: General error: 1364 Field 'password' doesn't have a default value
body: <p>I am making a small test web store in Laravel. Tried to edit user profile. There are so many fields:</p>
  <pre><code>Schema::create('users', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('name');
              $table-&gt;string('phone')-&gt;nullable();
              $table-&gt;string('img')-&gt;nullable();
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;timestamp('email_verified_at')-&gt;nullable();
              $table-&gt;string('password');
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
  </code></pre>
  <p>But I'm trying to change only 3 of them, and an error is displayed that others do not have a default value, and why does it even touch other fields? Or am I doing something wrong?</p>
  <pre><code>public function user_edit(Request $request, User $user){
  
        $user-&gt;name = $request-&gt;name?$request-&gt;name:Auth::user()-&gt;name;
        $user-&gt;email = $request-&gt;email?$request-&gt;email:Auth::user()-&gt;email;
        $user-&gt;phone = $request-&gt;phone?$request-&gt;phone:(Auth::user()-&gt;phone?Auth::user()-&gt;phone:NULL);
        $user-&gt;save();
  
        return redirect()-&gt;back();
      }
  </code></pre>