src/Settings/Settings.php
protected function getByKey($key)
    {
        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->where('key', $key)
            ->first();
    }
protected function getByKey($key)
    {
        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->where('key', $key)
            ->first();
    }
protected function getByKey ( $ key ) { return $ this -> propertyBag ( ) -> where ( 'resource_id' , $ this -> resource -> getKey ( ) ) -> where ( 'key' , $ key ) -> first ( ) ; }
Get a property bag record by key.

@param string $key

@return \LaravelPropertyBag\Settings\PropertyBag
Get a property bag record by key .