Cleanup for settings table and moved some seed data into the migrations

This commit is contained in:
Nabeel Shahzad
2017-12-09 21:21:49 -06:00
parent b165cd28b6
commit d34e30666d
19 changed files with 323 additions and 204 deletions

30
app/Models/Setting.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: nshahzad
* Date: 12/9/17
* Time: 6:24 PM
*/
namespace App\Models;
use Eloquent as Model;
class Setting extends Model
{
public $table = 'settings';
public $fillable = [
'name',
'key',
'value',
'group',
'type',
'options',
'description',
];
public $casts = [
'options' => 'array',
];
}