public function getAttribute($key)
    {
        if ($this->data->has($key)) {
            return $this->data->get($key);
        }
    }
public function getAttribute($key)
    {
        if ($this->data->has($key)) {
            return $this->data->get($key);
        }
    }
public function getAttribute ( $ key ) { if ( $ this -> data -> has ( $ key ) ) { return $ this -> data -> get ( $ key ) ; } }
Returns the attribute with the passed key from the container.

@param string $key The key the requested value is registered with

@return mixed|null The requested value if available
Returns the attribute with the passed key from the container .