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