From 3cbb500de7520c1af7f41d4d962cfe821bc1e732 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 6 Jan 2015 15:42:40 +0000 Subject: [PATCH] Default setting attribute --- src/Models/Setting.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Models/Setting.php b/src/Models/Setting.php index c81e6357..086ee1be 100644 --- a/src/Models/Setting.php +++ b/src/Models/Setting.php @@ -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. *