public function delete(): self
    {
        $ids = array_values($this->id);

        if (count($ids)) {
            $this->table->delete()
                ->where('id IN ', $ids)
                ->run();

            $this->id = null;
        }

        return $this;
    }
public function delete(): self
    {
        $ids = array_values($this->id);

        if (count($ids)) {
            $this->table->delete()
                ->where('id IN ', $ids)
                ->run();

            $this->id = null;
        }

        return $this;
    }
public function delete ( ) : self { $ ids = array_values ( $ this -> id ) ; if ( count ( $ ids ) ) { $ this -> table -> delete ( ) -> where ( 'id IN ' , $ ids ) -> run ( ) ; $ this -> id = null ; } return $ this ; }
Delete all rows in the database
Delete all rows in the database