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');
	}
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');
	}
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' ) ; }
Delete the given Model

@param  $object
@return Payload
Delete the given Model