mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 19:49:16 +00:00
29 lines
460 B
PHP
29 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 配置信息.
|
|
*/
|
|
class SsConfig extends Model
|
|
{
|
|
public $timestamps = false;
|
|
protected $table = 'ss_config';
|
|
protected $guarded = [];
|
|
|
|
// 筛选默认
|
|
|
|
public function scopeDefault($query): void
|
|
{
|
|
$query->whereIsDefault(1);
|
|
}
|
|
|
|
// 筛选类型
|
|
public function scopeType($query, $type): void
|
|
{
|
|
$query->whereType($type);
|
|
}
|
|
}
|