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

Repository

Methods

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

all ( ) : array

Get all of the configuration items for the application.

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