Cleanup for settings table and moved some seed data into the migrations
This commit is contained in:
30
app/Models/Setting.php
Normal file
30
app/Models/Setting.php
Normal 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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user