original_string: protected function deleteModel(Model $model)
      {
          $strategy = $this->getModelInformation()->deleteStrategy();
  
          if ( ! $strategy) {
              return $model->delete();
          }
  
          /** @var DeleteStrategyFactoryInterface $factory */
          $factory = app(DeleteStrategyFactoryInterface::class);
          $strategy = $factory->make($strategy);
  
          return $strategy->delete($model);
      }
code: protected function deleteModel(Model $model)
      {
          $strategy = $this->getModelInformation()->deleteStrategy();
  
          if ( ! $strategy) {
              return $model->delete();
          }
  
          /** @var DeleteStrategyFactoryInterface $factory */
          $factory = app(DeleteStrategyFactoryInterface::class);
          $strategy = $factory->make($strategy);
  
          return $strategy->delete($model);
      }
code_tokens: protected function deleteModel ( Model $ model ) { $ strategy = $ this -> getModelInformation ( ) -> deleteStrategy ( ) ; if ( ! $ strategy ) { return $ model -> delete ( ) ; } /** @var DeleteStrategyFactoryInterface $factory */ $ factory = app ( DeleteStrategyFactoryInterface :: class ) ; $ strategy = $ factory -> make ( $ strategy ) ; return $ strategy -> delete ( $ model ) ; }
docstring: Deletes model.
  
  Note that this does not check authorization, conditions, etc.
  
  @param Model $model
  @return bool
docstring_tokens: Deletes model .