mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
24 lines
370 B
PHP
24 lines
370 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
/**
|
|
* 等级.
|
|
*/
|
|
class Level extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'level';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function users(): HasMany
|
|
{
|
|
return $this->hasMany(User::class, 'level');
|
|
}
|
|
}
|