class_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the class has been defined
<?php class_exists(string $class, bool $autoload = true): bool
<?php     public function telescopeUrl(): ?string

    {

        try {

            if (! class_exists(Telescope::class)) {

                return null;

            }
<?php         });



        $this->app->make('view.engine.resolver')->register('blade', function () {

            if (class_exists(CompilerEngineForIgnition::class)) {

                return new CompilerEngineForIgnition($this->app['blade.compiler']);

            }
<?php     public function livewireIsInstalled(): bool

    {

        if (! class_exists(ComponentNotFoundException::class)) {

            return false;

        }

        if (! class_exists(LivewireComponentsFinder::class)) {
<?php         if (! class_exists(ComponentNotFoundException::class)) {

            return false;

        }

        if (! class_exists(LivewireComponentsFinder::class)) {

            return false;

        }
<?php     public function getSolutionForClass(string $solutionClass): ?Solution

    {

        if (! class_exists($solutionClass)) {

            return null;

        }