Default setting attribute

This commit is contained in:
James Brooks 2015-01-06 15:42:40 +00:00
parent a6cdfaf63f
commit 3cbb500de7

View File

@ -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.
*