title: Laravel: SQL update current time
body: <p>First Laravel Project. I have a controller, where I upload an image and edit two cell in a mysql row (img and current time) then return to ProductDetails page.</p>
  
  <pre><code>public function uploadImage(Request $request, $id){
      $file = $request-&gt;file('image');
      //Display File Name
      echo 'File Name: '.$file-&gt;getClientOriginalName();
      echo '&lt;br&gt;';
      //Display File Extension
      echo 'File Extension: '.$file-&gt;getClientOriginalExtension();
      echo '&lt;br&gt;';
      //Display File Real Path
      echo 'File Real Path: '.$file-&gt;getRealPath();
      echo '&lt;br&gt;';
      //Display File Size
      echo 'File Size: '.$file-&gt;getSize();
      echo '&lt;br&gt;';
      //Display File Mime Type
      echo 'File Mime Type: '.$file-&gt;getMimeType();
      //Move Uploaded File
      $destinationPath = 'media/productimg';
      $file-&gt;move($destinationPath,$file-&gt;getClientOriginalName());
      $img=$file-&gt;getClientOriginalName();
      DB::update('update inventory set img = ? lastchange = ? where barcode = ?',[$img,CURRENT_TIME(),$id]);
      $product = DB::select('select * FROM inventory WHERE barcode = ?', [$id]);
      return view('productdetails',['product'=&gt;$product]);
      }
  </code></pre>
  
  <p>My problem is that Laravel don't understand the "CURRENT_TIME()" </p>
  
  <blockquote>
    <p>FatalThrowableError in InventoryController.php line 47: Call to undefined function App\Http\Controllers\CURRENT_TIME()</p>
  </blockquote>
  
  <p>Do I need additional dependency or Laravel has a built-in method for that? (I have to use it on several places)</p>
  
  <p><strong>EDIT:</strong> lastchange is a DATETIME cell</p>