public function getOptionsModel()
    {
        $model = $this->options;

        if (is_string($model)) {
            $model = app($model);
        }

        if (! ($model instanceof Model)) {
            throw new InvalidArgumentException(
                sprintf(
                    'The %s element[%s] options class must be instanced of "%s".',
                    $this->getType(),
                    $this->getName(),
                    Model::class
                )
            );
        }

        return $model;
    }
public function getOptionsModel()
    {
        $model = $this->options;

        if (is_string($model)) {
            $model = app($model);
        }

        if (! ($model instanceof Model)) {
            throw new InvalidArgumentException(
                sprintf(
                    'The %s element[%s] options class must be instanced of "%s".',
                    $this->getType(),
                    $this->getName(),
                    Model::class
                )
            );
        }

        return $model;
    }
public function getOptionsModel ( ) { $ model = $ this -> options ; if ( is_string ( $ model ) ) { $ model = app ( $ model ) ; } if ( ! ( $ model instanceof Model ) ) { throw new InvalidArgumentException ( sprintf ( 'The %s element[%s] options class must be instanced of "%s".' , $ this -> getType ( ) , $ this -> getName ( ) , Model :: class ) ) ; } return $ model ; }
Get the options model.

@return Model
Get the options model .