/** * Constructor. * * @param array $attributes */ public function __construct(array $attributes = []) { parent::__construct(Arr::only($attributes, $this->properties)); }
/** * Remove item form Collection. * * @param string $key */ public function forget($key) { return Arr::forget($this->items, $key); }