diff --git a/src/Repository.php b/src/Repository.php index 3cd1d28..f363f52 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -17,7 +17,22 @@ public function __construct($name) parent::__construct(Config::get($name, [])); } + + /** + * Return self to allow chain of set and save. + * + * @param array|string $key + * @param null $value + * + * @return $this + */ + public function set($key, $value = null) + { + parent::set($key, $value); + return $this; + } + public function save($from = null, $to = null, $validate = true) { if ($from === null) {