Exemple #1
0
 /**
  * Merges current collection with given collection.
  * @param  RouteCollection $collection Collection object from we merge routes.
  * @return self
  */
 public function mergeWith(RouteCollection $collection)
 {
     $this->collection = array_merge($this->collection, $collection->all());
     return $this;
 }