Added new Beacon handling code

This commit is contained in:
James Brooks
2016-08-03 17:44:21 +01:00
parent dd2e77d479
commit 778664b20a
14 changed files with 446 additions and 0 deletions
+17
View File
@@ -76,6 +76,23 @@ class Repository
}
}
/**
* Get a setting, or the default value.
*
* @param string $name
* @param mixed $default
*
* @return mixed
*/
public function get($name, $default = null)
{
if ($setting = $this->model->where('name', $name)->first()) {
return $setting->value;
}
return $default;
}
/**
* Deletes a setting.
*