Owl\Repositories\Fluent\AbstractFluent::delete PHP Method

delete() public method

Deletel a record.
public delete ( array $wkey, $table = null ) : int:deleted
$wkey array array :where key(column name) => value
$table string :table name(defalut: getTableName())
return int:deleted count number
    public function delete(array $wkey, $table = null)
    {
        if (is_null($table)) {
            $table = $this->getTableName();
        }
        return \DB::table($table)->where(key($wkey), '=', current($wkey))->delete();
    }