Files
cachet-docker/app/models/Setting.php
2014-11-19 16:50:54 +00:00

14 lines
248 B
PHP

<?php
class Setting extends Eloquent {
public static function get($settingName) {
try {
$setting = self::where('name', $settingName)->first()->value;
} catch (ErrorException $e) {
$setting = null;
}
return $setting;
}
}