mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
19 lines
342 B
PHP
19 lines
342 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');
|
|
}
|
|
}
|