Moved notification settings to DB

This commit is contained in:
Henry Whitaker
2020-07-07 20:51:57 +01:00
parent f543e1345c
commit 4ef0303dff
25 changed files with 837 additions and 112 deletions

View File

@@ -2,6 +2,7 @@
namespace App;
use App\Helpers\SettingsHelper;
use Illuminate\Database\Eloquent\Model;
class Setting extends Model
@@ -16,4 +17,11 @@ class Setting extends Model
];
protected $table = 'settings';
protected $attributes = [ 'editable' ];
public function getEditableAttribute()
{
return SettingsHelper::settingIsEditable($this->name);
}
}