Default setting attribute
This commit is contained in:
@@ -21,6 +21,15 @@ class Setting extends Model
|
||||
*/
|
||||
protected $fillable = ['name', 'value'];
|
||||
|
||||
/**
|
||||
* List of attributes that have default values.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $attributes = [
|
||||
'value' => '',
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns a setting from the database.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user