mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-31 18:17:20 +01:00
Added v1.12.0 files
This commit is contained in:
25
conf/site/app/Models/Setting.php
Normal file
25
conf/site/app/Models/Setting.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Casts\CommaSeparatedArrayCast;
|
||||
use App\Helpers\SettingsHelper;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Setting extends Model
|
||||
{
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'value', 'description'
|
||||
];
|
||||
|
||||
protected $table = 'settings';
|
||||
|
||||
protected $casts = [
|
||||
'value' => CommaSeparatedArrayCast::class,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user