mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
18 lines
341 B
PHP
18 lines
341 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class GoodsCategory extends Model
|
|
{
|
|
protected $table = 'goods_category';
|
|
protected $guarded = [];
|
|
|
|
public function goods(): HasMany
|
|
{
|
|
return $this->hasMany(Goods::class, 'category_id');
|
|
}
|
|
}
|