Standardise models

This commit is contained in:
James Brooks
2018-06-16 17:00:27 +01:00
parent d97e7df68f
commit d25e626678
6 changed files with 25 additions and 25 deletions

View File

@@ -15,6 +15,13 @@ use Illuminate\Database\Eloquent\Model;
class Setting extends Model
{
/**
* List of attributes that have default values.
*
* @var string[]
*/
protected $attributes = ['value' => ''];
/**
* The attributes that should be casted to native types.
*
@@ -31,11 +38,4 @@ class Setting extends Model
* @var string[]
*/
protected $fillable = ['name', 'value'];
/**
* List of attributes that have default values.
*
* @var string[]
*/
protected $attributes = ['value' => ''];
}