title: Check if request input is not null before set the value
body: <p>I have an API that set user settings. Because neither of inputs are mandatory I want to check first if the value exists and then set it to the model attributes in order to avoid null values.</p>
  
  <pre><code>$this-&gt;InputValidator-&gt;validate($request, [
                  'firsname' =&gt; 'string',
                  'lastname' =&gt; 'string',
                  'email' =&gt; 'email',
                  'mobile_phone' =&gt; 'string',
                  'address' =&gt; 'string',
                  'language' =&gt; 'string',
                  'timezone' =&gt; 'string',
                  'nationality' =&gt; 'string',
                  'profile_photo' =&gt; 'url'
              ]);
  
              $userInformation = new UserInformation([
                  'firstname' =&gt; $request-&gt;input('firstname'),
                  'lastname' =&gt; $request-&gt;input('lastname'),
                  'email' =&gt; $request-&gt;input('email'),
                  'mobile_phone' =&gt; $request-&gt;input('mobile_phone'),
                  'address' =&gt; $request-&gt;input('address'),
                  'profile_photo' =&gt; $request-&gt;input('profile_photo')
              ]);
              $User-&gt;information()-&gt;save($userInformation);
  </code></pre>
  
  <p>Specificaly when one of inputs is not existin I dont want to pass it to the model. Also I dont want to make inputs required</p>