2024-05-24 07:55:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-05-24 11:04:29 +00:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2024-05-24 07:55:55 +00:00
|
|
|
|
2024-05-24 11:04:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @property Good $good
|
|
|
|
*/
|
2024-05-24 07:55:55 +00:00
|
|
|
class GoodItem extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
2024-05-24 11:04:29 +00:00
|
|
|
|
|
|
|
public function Good () : BelongsTo{
|
|
|
|
return $this->belongsTo(Good::class,'item_id');
|
|
|
|
}
|
2024-05-24 07:55:55 +00:00
|
|
|
}
|