src/Settings/Settings.php
protected function getAllSettings()
    {
        if ($this->resource->relationLoaded('propertyBag')) {
            return $this->resource->propertyBag;
        }

        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->get();
    }
protected function getAllSettings()
    {
        if ($this->resource->relationLoaded('propertyBag')) {
            return $this->resource->propertyBag;
        }

        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->get();
    }
protected function getAllSettings ( ) { if ( $ this -> resource -> relationLoaded ( 'propertyBag' ) ) { return $ this -> resource -> propertyBag ; } return $ this -> propertyBag ( ) -> where ( 'resource_id' , $ this -> resource -> getKey ( ) ) -> get ( ) ; }
Retrieve all settings from database.

@return \Illuminate\Support\Collection
Retrieve all settings from database .