Exemplo n.º 1
0
 /**
  * Find all settings with namespace.
  *
  * @param $namespace
  * @return SettingCollection
  */
 public function findAllByNamespace($namespace)
 {
     return $this->model->where('key', 'LIKE', $namespace . '%')->get();
 }
 /**
  * Get all settings for a namespace.
  *
  * @param $getNamespace
  * @return SettingCollection
  */
 public function getAll($namespace)
 {
     $settings = $this->model->where('key', 'LIKE', $namespace . '::%')->get();
     return new SettingCollection($settings->lists('value', 'key'));
 }