defined

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a constant with the given name exists
<?php defined(string $constant_name): bool
<?php     public static function artisanBinary()

    {

        return ProcessUtils::escapeArgument(defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan');

    }
<?php     {

        Prompt::setOutput($this->output);



        Prompt::interactive(($input->isInteractive() && defined('STDIN') && stream_isatty(STDIN)) || $this->laravel->runningUnitTests());



        Prompt::validateUsing(fn (Prompt $prompt) => $this->validatePrompt($prompt->value(), $prompt->validate));
<?php         $command = implode(' ', array_map(fn ($arg) => ProcessUtils::escapeArgument($arg), [

            PHP_BINARY,

            defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',

            'schedule:run',

        ]));
<?php     public function getDeletedAtColumn()

    {

        return defined(static::class.'::DELETED_AT') ? static::DELETED_AT : 'deleted_at';

    }
<?php         if ($this->option('passport')) {

            Process::run(array_filter([

                (new PhpExecutableFinder())->find(false) ?: 'php',

                defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',

                'passport:install',

                $this->confirm('Would you like to use UUIDs for all client IDs?') ? '--uuids' : null,

            ]));
<?php         if (! $migrationPublished) {

            Process::run([

                (new PhpExecutableFinder())->find(false) ?: 'php',

                defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',

                'vendor:publish',

                '--provider',

                'Laravel\\Sanctum\\SanctumServiceProvider',
<?php         Process::run([

            $php,

            defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',

            'reverb:install',

        ]);
<?php     public function __construct(Application $app, Dispatcher $events)

    {

        if (! defined('ARTISAN_BINARY')) {

            define('ARTISAN_BINARY', 'artisan');

        }
<?php     protected function threads(array $options)

    {

        if (defined('PASSWORD_ARGON2_PROVIDER') && PASSWORD_ARGON2_PROVIDER === 'sodium') {

            return 1;

        }
<?php     protected function artisanBinary()

    {

        return defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan';

    }
<?php     public function compressed(): bool

    {

        return defined('Redis::OPT_COMPRESSION') &&

               $this->client->getOption(Redis::OPT_COMPRESSION) !== Redis::COMPRESSION_NONE;

    }
<?php     public function lzfCompressed(): bool

    {

        return defined('Redis::COMPRESSION_LZF') &&

               $this->client->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_LZF;

    }
<?php     public function zstdCompressed(): bool

    {

        return defined('Redis::COMPRESSION_ZSTD') &&

               $this->client->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_ZSTD;

    }
<?php     public function lz4Compressed(): bool

    {

        return defined('Redis::COMPRESSION_LZ4') &&

               $this->client->getOption(Redis::OPT_COMPRESSION) === Redis::COMPRESSION_LZ4;

    }
<?php     public function getUpdatedAtColumn()

    {

        return defined('static::UPDATED_AT') ? static::UPDATED_AT : 'updated_at';

    }



    public function setKeysForSaveQuery($query)