class Illuminate / Config / Repository
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Repository

Implements

Properties

protected

$items array

All of the configuration items.

Default: []

Methods

public

__construct ( array $items ) : void

Create a new configuration repository.

Parameters

  • $items array
public

has ( $key ) : bool

Determine if the given configuration value exists.

Parameters

  • $key string
public

get ( $key , $default ) : mixed

Get the specified configuration value.

Parameters

  • $key array|string
  • $default mixed
public

getMany ( $keys ) : array

Get many configuration values.

Parameters

  • $keys array
public

set ( $key , $value ) : void

Set a given configuration value.

Parameters

  • $key array|string
  • $value mixed
public

prepend ( $key , $value ) : void

Prepend a value onto an array configuration value.

Parameters

  • $key string
  • $value mixed
public

push ( $key , $value ) : void

Push a value onto an array configuration value.

Parameters

  • $key string
  • $value mixed
public

all ( ) : array

Get all of the configuration items for the application.

public

offsetExists ( $key ) : bool

Determine if the given configuration option exists.

Parameters

  • $key string
public

offsetGet ( $key ) : mixed

Get a configuration option.

Parameters

  • $key string
public

offsetSet ( $key , $value ) : void

Set a configuration option.

Parameters

  • $key string
  • $value mixed
public

offsetUnset ( $key ) : void

Unset a configuration option.

Parameters

  • $key string