public function default($key, $default = null)
	{
		if($this->has($key))
			return $this->get($key);

		$this->put($key, $default);

		return $default;
	}
public function default($key, $default = null)
	{
		if($this->has($key))
			return $this->get($key);

		$this->put($key, $default);

		return $default;
	}
public function default ( $ key , $ default = null ) { if ( $ this -> has ( $ key ) ) return $ this -> get ( $ key ) ; $ this -> put ( $ key , $ default ) ; return $ default ; }
If key is in the collection, return its value.
If not, insert key with the given default as value and return default.

@param  string  $key
@param  mixed   $default
@return mixed
If key is in the collection return its value . If not insert key with the given default as value and return default .