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