/**
  * Get a MessageBag instance from the bags.
  *
  * @param  string  $key
  * @return \Illuminate\Contracts\Support\MessageBag
  */
 public function getBag($key)
 {
     return Arr::get($this->bags, $key) ?: new MessageBag();
 }
 /**
  * Get an item from an array using "dot" notation.
  *
  * @param  array|\ArrayAccess   $array
  * @param  string  $key
  * @param  mixed   $default
  * @return mixed
  */
 function array_get($array, $key, $default = null)
 {
     return Arr::get($array, $key, $default);
 }