Result of query builder (update/new)

$result = DB::table(self::$tableName)
                ->where('id', $future_id)
                ->update($data);

$result is affected row number, not true/false. So do not use following script to detect query is successful or not:

if($result == false){
    echo 'Failed';
    exit();
}