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:<?php $value = config('app.timezone');
$value = config('app.timezone', $default);
<?php $this->solutions = $solutions;
$this->appEnv = config('app.env');
$this->appDebug = config('app.debug');
}
<?php $this->solutions = $solutions;
$this->appEnv = config('app.env');
$this->appDebug = config('app.debug');
}
public function throwableString(): string
<?php 'config' => $this->config(),
'solutions' => $this->solutions(),
'report' => $this->report(),
'housekeepingEndpoint' => url(config('ignition.housekeeping_endpoint_prefix', '_ignition')),
'styles' => $this->styles(),
'scripts' => $this->scripts(),
'tabs' => $this->tabs(),
<?php ],
];
if (config('flare.reporting.report_view_data')) {
$context['view']['data'] = array_map([$this, 'dumpViewData'], $this->viewData);
}
<?php protected function ignitionEnabled(): bool
{
return config('app.debug');
}
}
<?php $enabled = Arr::get($this->options, 'enable_runnable_solutions', null);
if ($enabled === null) {
$enabled = config('app.debug');
}
return $enabled ?? false;
<?php protected function mergeWithDefaultConfig(array $options = []): array
{
return array_merge(config('ignition') ?: include __DIR__.'/../config/ignition.php', $options);
}
}
<?php $this->setupOctane();
}
if (config('flare.reporting.report_logs')) {
$this->app->make(LogRecorder::class)->register();
}
<?php $this->app->make(LogRecorder::class)->register();
}
if (config('flare.reporting.report_queries')) {
$this->app->make(QueryRecorder::class)->register();
}
<?php ->registerFlare()
->registerDumpCollector();
if (config('flare.reporting.report_logs')) {
$this->registerLogRecorder();
}
<?php $this->registerLogRecorder();
}
if (config('flare.reporting.report_queries')) {
$this->registerQueryRecorder();
}
<?php $this->registerQueryRecorder();
}
if (config('flare.reporting.anonymize_ips')) {
$this->app->get(Flare::class)->anonymizeIp();
}
<?php $this->app->get(Flare::class)->anonymizeIp();
}
$this->app->get(Flare::class)->censorRequestBodyFields(config('flare.reporting.censor_request_body_fields', ['password']));
$this->registerBuiltInMiddleware();
}
<?php Route::group([
'as' => 'ignition.',
'prefix' => config('ignition.housekeeping_endpoint_prefix', '_ignition'),
'middleware' => [IgnitionEnabled::class],
], function () {
Route::get('health-check', HealthCheckController::class)->name('healthCheck');
<?php {
$this->app->singleton('flare.http', function () {
return new Client(
config('flare.key'),
config('flare.secret'),
config('flare.base_url', 'https://flareapp.io/api')
);