public function extractEntityName($model)
    {
        $classNames = (array) explode('\\', $model);

        $entityName = end($classNames);

        if ($this->entityHasTranslation($entityName)) {
            return __('exception::exceptions.models.'.$entityName);
        }

        return $entityName;
    }
public function extractEntityName($model)
    {
        $classNames = (array) explode('\\', $model);

        $entityName = end($classNames);

        if ($this->entityHasTranslation($entityName)) {
            return __('exception::exceptions.models.'.$entityName);
        }

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

@param  string $model
@return string
Get entitie name based on model path to mount the message .