public function aliasClass($class)
    {
        if (Str::contains($class, '\\')) {
            return;
        }

        $fullName = isset($this->classes[$class])
            ? $this->classes[$class]
            : false;

        if ($fullName) {
            $this->shell->writeStdout("[!] Aliasing '{$class}' to '{$fullName}' for this Tinker session.\n");

            class_alias($fullName, $class);
        }
    }
public function aliasClass($class)
    {
        if (Str::contains($class, '\\')) {
            return;
        }

        $fullName = isset($this->classes[$class])
            ? $this->classes[$class]
            : false;

        if ($fullName) {
            $this->shell->writeStdout("[!] Aliasing '{$class}' to '{$fullName}' for this Tinker session.\n");

            class_alias($fullName, $class);
        }
    }
public function aliasClass ( $ class ) { if ( Str :: contains ( $ class , '\\' ) ) { return ; } $ fullName = isset ( $ this -> classes [ $ class ] ) ? $ this -> classes [ $ class ] : false ; if ( $ fullName ) { $ this -> shell -> writeStdout ( "[!] Aliasing '{$class}' to '{$fullName}' for this Tinker session.\n" ) ; class_alias ( $ fullName , $ class ) ; } }
Find the closest class by name.

@param  string  $class
@return void
Find the closest class by name .