Exemplo n.º 1
0
 /**
  * Get an item from this collection.
  *
  * @param $key
  * @return mixed
  * @throws Exception
  */
 public function get($key)
 {
     if (!array_key_exists($key, $this->attributes)) {
         throw new Exception("Invalid key '{$key}''");
     }
     return Arr::read($key, $this->attributes);
 }