original_string: public function delete($id)
      {
          $this->fireEvent('deleting', [$id]);
  
          $deleted = $this->model->destroy($id);
  
          $this->fireEvent('deleted', [$id, $deleted]);
  
          return $deleted;
      }
code: public function delete($id)
      {
          $this->fireEvent('deleting', [$id]);
  
          $deleted = $this->model->destroy($id);
  
          $this->fireEvent('deleted', [$id, $deleted]);
  
          return $deleted;
      }
code_tokens: public function delete ( $ id ) { $ this -> fireEvent ( 'deleting' , [ $ id ] ) ; $ deleted = $ this -> model -> destroy ( $ id ) ; $ this -> fireEvent ( 'deleted' , [ $ id , $ deleted ] ) ; return $ deleted ; }
docstring: Find and delete a resource by ID.
  
  @param  int  $id
  @return bool
docstring_tokens: Find and delete a resource by ID .