mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 02:58:42 +00:00
24 lines
379 B
PHP
24 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
/**
|
|
* 标签.
|
|
*/
|
|
class Label extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'label';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function nodes(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(Node::class);
|
|
}
|
|
}
|