예제 #1
0
 /**
  * Get a MessageBag instance from the bags.
  *
  * @param  string $key
  *
  * @return \Th3FalleN\Support\Contracts\MessageBag
  */
 public function getBag($key)
 {
     return Arr::get($this->bags, $key) ?: new MessageBag();
 }
예제 #2
0
 /**
  * Get and remove an item from the collection.
  *
  * @param  mixed $key
  * @param  mixed $default
  *
  * @return mixed
  */
 public function pull($key, $default = null)
 {
     return Arr::pull($this->items, $key, $default);
 }