private function reactableModelFromType(
        string $modelType
    ): ReactableContract {
        if (!class_exists($modelType)) {
            $modelType = $this->findModelTypeInMorphMap($modelType);
        }

        $model = new $modelType;

        if (!$model instanceof ReactableContract) {
            throw ReactableInvalid::notImplementInterface($modelType);
        }

        return $model;
    }
private function reactableModelFromType(
        string $modelType
    ): ReactableContract {
        if (!class_exists($modelType)) {
            $modelType = $this->findModelTypeInMorphMap($modelType);
        }

        $model = new $modelType;

        if (!$model instanceof ReactableContract) {
            throw ReactableInvalid::notImplementInterface($modelType);
        }

        return $model;
    }
private function reactableModelFromType ( string $ modelType ) : ReactableContract { if ( ! class_exists ( $ modelType ) ) { $ modelType = $ this -> findModelTypeInMorphMap ( $ modelType ) ; } $ model = new $ modelType ; if ( ! $ model instanceof ReactableContract ) { throw ReactableInvalid :: notImplementInterface ( $ modelType ) ; } return $ model ; }
Instantiate model from type or morph map value.

@param string $modelType
@return \Cog\Contracts\Love\Reactable\Models\Reactable|\Illuminate\Database\Eloquent\Model

@throws \Cog\Contracts\Love\Reactable\Exceptions\ReactableInvalid
Instantiate model from type or morph map value .