title: Laravel Update or Insert value in null field
body: <p>I'm having trouble inserting value in null field.</p>
  <p>this is the table</p>
  <pre><code>public function up()
      {
          Schema::create('users', function (Blueprint $table) {
              $table-&gt;id();
              $table-&gt;string('name');
              $table-&gt;string('username')-&gt;unique()-&gt;nullable();
              $table-&gt;string('mobile_no')-&gt;nullable();
              $table-&gt;string('address')-&gt;nullable();
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;boolean('role_name')-&gt;default(0);
              $table-&gt;string('password');
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  <p>this is the UserController</p>
  <pre><code>public function update(Request $request, User $user)
      {
          $request-&gt;validate([
              'name' =&gt; 'required|max:255',
              'mobile_no' =&gt; 'required|max:11',
              'address' =&gt; 'required|max:255',
          ]);
          $user-&gt;update($request-&gt;all());
          return redirect()-&gt;route('profile')-&gt;with('updated', 'Profile successfully updated');
      }
  </code></pre>
  <p>I don't get error and the $message always says : &quot;Profile successfully updated&quot; but it is not really updated.</p>