mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 14:31:52 +01:00
Moved notification settings to DB
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user