19 lines
454 B
PHP
19 lines
454 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
#[Fillable(['product_id', 'service_type', 'status', 'actual_collection_date', 'remark'])]
|
|
class ProductService extends Model
|
|
{
|
|
protected $table = 'product_services';
|
|
|
|
public function product(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Product::class);
|
|
}
|
|
}
|