/** * 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(); }
/** * 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); }