コード例 #1
0
 /**
  * Find all settings with namespace.
  *
  * @param $namespace
  * @return SettingCollection
  */
 public function findAllByNamespace($namespace)
 {
     return $this->model->where('key', 'LIKE', $namespace . '%')->get();
 }
コード例 #2
0
 /**
  * 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'));
 }