public function get(string $name, $default = null)
    {
        if ( ! $this->has($name)) {
            throw new \RuntimeException('No item "' . $name . '" exists in the registry.');
        }

        return Arr::get($this->registry, $name, $default);
    }
public function get(string $name, $default = null)
    {
        if ( ! $this->has($name)) {
            throw new \RuntimeException('No item "' . $name . '" exists in the registry.');
        }

        return Arr::get($this->registry, $name, $default);
    }
public function get ( string $ name , $ default = null ) { if ( ! $ this -> has ( $ name ) ) { throw new \ RuntimeException ( 'No item "' . $ name . '" exists in the registry.' ) ; } return Arr :: get ( $ this -> registry , $ name , $ default ) ; }
Get item from the registry.

@param  string $name The name of the item to fetch.
@param  mixed  $default Default value
@return mixed
Get item from the registry .