original_string: public function extractEntityName($model)
      {
          $classNames = (array) explode('\\', $model);
  
          $entityName = end($classNames);
  
          if ($this->entityHasTranslation($entityName)) {
              return __('exception::exceptions.models.'.$entityName);
          }
  
          return $entityName;
      }
code: public function extractEntityName($model)
      {
          $classNames = (array) explode('\\', $model);
  
          $entityName = end($classNames);
  
          if ($this->entityHasTranslation($entityName)) {
              return __('exception::exceptions.models.'.$entityName);
          }
  
          return $entityName;
      }
code_tokens: public function extractEntityName ( $ model ) { $ classNames = ( array ) explode ( '\\' , $ model ) ; $ entityName = end ( $ classNames ) ; if ( $ this -> entityHasTranslation ( $ entityName ) ) { return __ ( 'exception::exceptions.models.' . $ entityName ) ; } return $ entityName ; }
docstring: Get entitie name based on model path to mount the message.
  
  @param  string $model
  @return string
docstring_tokens: Get entitie name based on model path to mount the message .