mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
27 lines
460 B
PHP
27 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Observers\ConfigObserver;
|
|
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 系统配置.
|
|
*/
|
|
#[ObservedBy([ConfigObserver::class])]
|
|
class Config extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
public $incrementing = false;
|
|
|
|
protected $table = 'config';
|
|
|
|
protected $primaryKey = 'name';
|
|
|
|
protected $keyType = 'string';
|
|
|
|
protected $guarded = [];
|
|
}
|