예제 #1
0
 /**
  * Write an item to the session flash data.
  *
  * Flash data only exists for the next request to the application, and is
  * useful for storing temporary data such as error or status messages.
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public function flash($key, $value)
 {
     Arr::set($this->session['data'][':new:'], $key, $value);
 }
예제 #2
0
파일: config.php 프로젝트: jknox12/mirror
 /**
  * Set a configuration item's value.
  *
  * <code>
  *		// Set the "session" configuration array
  *		Config::set('session', $array);
  *
  *		// Set the "timezone" option in the "application" configuration file
  *		Config::set('application.timezone', 'UTC');
  * </code>
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public static function set($key, $value)
 {
     list($file, $key) = static::parse($key);
     static::load($file);
     if (is_null($key)) {
         Arr::set(static::$items, $file, $value);
     } else {
         Arr::set(static::$items[$file], $key, $value);
     }
 }