The config function gets the value of a configuration variable. The configuration values may be accessed using "dot" syntax, which includes the name of the file and the option you wish to access. A default value may be specified and is returned if the configuration option does not exist:
$value config('app.timezone');

$value config('app.timezone'$default);
            };

        }



        if (empty(
$paths config('octane.watch'))) {

            throw new 
InvalidArgumentException(

                
'List of directories/files to watch not found. Please update your "config/octane.php" configuration file.',

            );
        return tap(new Process([

            (new 
ExecutableFinder)->find('node'),

            
'file-watcher.js',

            
json_encode(collect(config('octane.watch'))->map(fn ($path) => base_path($path))),

        ], 
realpath(__DIR__.'/../../../bin'), nullnullnull))->start();

    }
    public function handle()

    {

        
$server $this->option('server') ?: config('octane.server');



        return match (
$server) {

            
'swoole' => $this->reloadSwooleServer(),
    public function handle()

    {

        
$server $this->option('server') ?: config('octane.server');



        return match (
$server) {

            
'swoole' => $this->startSwooleServer(),
    protected function stopServer()

    {

        
$server $this->option('server') ?: config('octane.server');



        
$this->callSilent('octane:stop', [

            
'--server' => $server,
            '-o''rpc.listen=tcp://'.$this->option('host').':'.$this->rpcPort(),

            
'-o''http.pool.supervisor.exec_ttl='.$this->maxExecutionTime(),

            
'-o''http.static.dir=public',

            
'-o''http.middleware='.config('octane.roadrunner.http_middleware''static'),

            
'-o''logs.mode=production',

            
'-o'app()->environment('local') ? 'logs.level=debug' 'logs.level=warning',

            
'-o''logs.output=stdout',
        ServerStateFile $serverStateFile

    
) {

        
$serverStateFile->writeState([

            
'appName' => config('app.name''Laravel'),

            
'host' => $this->option('host'),

            
'port' => $this->option('port'),

            
'rpcPort' => $this->rpcPort(),
            'rpcPort' => $this->rpcPort(),

            
'workers' => $this->workerCount(),

            
'maxRequests' => $this->option('max-requests'),

            
'octaneConfig' => config('octane'),

        ]);

    }
    protected function maxExecutionTime()

    {

        return 
config('octane.max_execution_time''30').'s';

    }
            return 1;

        }



        if (
config('octane.swoole.ssl'false) === true && ! defined('SWOOLE_SSL')) {

            
$this->error('You must configure Swoole with `--enable-openssl` to support ssl.');



            return 
1;
        SwooleExtension $extension

    
) {

        
$serverStateFile->writeState([

            
'appName' => config('app.name''Laravel'),

            
'host' => $this->option('host'),

            
'port' => $this->option('port'),

            
'workers' => $this->workerCount($extension),
            'publicPath' => public_path(),

            
'storagePath' => storage_path(),

            
'defaultServerOptions' => $this->defaultServerOptions($extension),

            
'octaneConfig' => config('octane'),

        ]);

    }
    public function handle()

    {

        
$server $this->option('server') ?: config('octane.server');



        
$isRunning = match ($server) {

            
'swoole' => $this->isSwooleServerRunning(),
    public function handle()

    {

        
$server $this->option('server') ?: config('octane.server');



        return match (
$server) {

            
'swoole' => $this->stopSwooleServer(),
    public function handle($event): void

    
{

        if (
config('cache.stores.array')) {

            
$event->sandbox->make('cache')->store('array')->flush();

        }

    }