php-cooper-config

Documentation

Table of Contents

Packages

Application

Namespaces

JOetjen

Functions

cooper_config()  : mixed
The loaded configuration, or the value at `$path` in it: the global shorthand for `Config::all()`/`Config::get()`. Not `config()`, which Laravel owns.

Functions

cooper_config()

The loaded configuration, or the value at `$path` in it: the global shorthand for `Config::all()`/`Config::get()`. Not `config()`, which Laravel owns.

cooper_config([string|array<int, string|int>|null $path = null ][, mixed $default = null ]) : mixed
Parameters
$path : string|array<int, string|int>|null = null

a dotted path or a list of segments; null for the whole configuration

$default : mixed = null

what to return when $path leads nowhere

Tags
throws
NotLoadedError

when Config::load() has not run

InvalidArgumentException

on an empty path or segment

Return values
mixed —

the value, or $default

Search results