Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
<?php get_class(object $object = ?): string
<?php         $foreignCallback = '\\App\\REPLACE_THIS::factory()';



        try {

            $relatedModel = get_class($this->modelInstance->$relationName()->getRelated());



            return str_replace('App\\REPLACE_THIS', $relatedModel, $foreignCallback);

        } catch (\Exception $e) {