original_string: public function delete($object)
  	{
  		$deleted = $object->delete();
  
  		if( ! $deleted)
  		{
  			return new Payload($object, 'not_deleted');
  		}
  
  		// Remove the deleted model from cache.
  		Cache::tags($this->model->getTable())->flush($updated->getKey());
  
  		return new Payload(null, 'deleted');
  	}
code: public function delete($object)
  	{
  		$deleted = $object->delete();
  
  		if( ! $deleted)
  		{
  			return new Payload($object, 'not_deleted');
  		}
  
  		// Remove the deleted model from cache.
  		Cache::tags($this->model->getTable())->flush($updated->getKey());
  
  		return new Payload(null, 'deleted');
  	}
code_tokens: public function delete ( $ object ) { $ deleted = $ object -> delete ( ) ; if ( ! $ deleted ) { return new Payload ( $ object , 'not_deleted' ) ; } // Remove the deleted model from cache. Cache :: tags ( $ this -> model -> getTable ( ) ) -> flush ( $ updated -> getKey ( ) ) ; return new Payload ( null , 'deleted' ) ; }
docstring: Delete the given Model
  
  @param  $object
  @return Payload
docstring_tokens: Delete the given Model