Files
ProxyPanel/app/Models/Country.php
兔姬桑 265fabac86 Fix & Improvement
Fix #98 ;
Fix some missing class errors;
Finished the validation for configs & simplify the store/update process;
Combined the User node info & subscribe node info as one unit;
2021-01-02 13:13:07 +08:00

24 lines
430 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* 国家/地区.
*/
class Country extends Model
{
public $timestamps = false;
public $incrementing = false;
protected $table = 'country';
protected $primaryKey = 'code';
protected $keyType = 'string';
protected $guarded = [];
public function nodes()
{
return $this->hasMany(Node::class, 'country_code');
}
}