title: How to check the given values are updated are not into Database in php
body: <p>I'm doing webservice using laravel,Here I need to send response after the value get updated into database...</p>
  
  <p>I tried something like this,</p>
  
  <pre><code>public function getPhoneverify(){
      $_REQUEST['user_id']    = str_replace('"','', $_REQUEST['user_id']);
      $_REQUEST['status']     = str_replace('"','', $_REQUEST['status']);
  
      $user = \DB::table('tb_users')-&gt;where('id', $_REQUEST['user_id'] )-&gt;update(array('phone_verified' =&gt; $_REQUEST['status']));
      if($user)
      {
          echo "success";exit;
      }
      else
      {
          echo "failed";exit;
      }
  }
  </code></pre>
  
  <p>But here,always it shows the else part message,even if the value get updated into the database..</p>
  
  <p>How should I do this..</p>
  
  <p>Is there any other option to do this!!..</p>
  
  <p>Someone help me..</p>