24 lines
577 B
PHP
24 lines
577 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ChannelConfig extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'channel_code', 'channel_name', 'channel_type', 'status', 'entry_path',
|
|
'supports_login', 'supports_payment', 'supports_share', 'sort', 'settings', 'remark',
|
|
];
|
|
|
|
protected $casts = [
|
|
'supports_login' => 'boolean',
|
|
'supports_payment' => 'boolean',
|
|
'supports_share' => 'boolean',
|
|
'settings' => 'array',
|
|
];
|
|
}
|