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 function boot()

    {

        if (!defined('STUBS_PATH')) {

            define('STUBS_PATH', dirname(__DIR__) . '/stubs');

        }
<?php             define('STUBS_PATH', dirname(__DIR__) . '/stubs');

        }



        if (!defined('CUSTOM_STUBS_PATH')) {

            define('CUSTOM_STUBS_PATH', base_path('stubs/blueprint'));

        }