2024-09-03 15:15:57 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2024-09-18 16:00:06 -07:00
|
|
|
use Database\Factories\PackingSlipFactory;
|
2024-09-03 15:15:57 -07:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
|
|
class PackingSlip extends Model
|
|
|
|
{
|
2024-09-18 16:00:06 -07:00
|
|
|
/** @use HasFactory<PackingSlipFactory> */
|
2024-09-09 15:29:31 -07:00
|
|
|
use HasFactory, SoftDeletes;
|
2024-09-03 15:15:57 -07:00
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'order_id',
|
|
|
|
'customer_id',
|
|
|
|
'date_received',
|
|
|
|
'amount',
|
|
|
|
'contents',
|
|
|
|
];
|
|
|
|
|
2024-09-18 16:00:06 -07:00
|
|
|
/**
|
|
|
|
* @return BelongsTo<Customer, self>
|
|
|
|
*/
|
2024-09-09 15:29:31 -07:00
|
|
|
public function customer(): BelongsTo
|
|
|
|
{
|
2024-09-03 15:15:57 -07:00
|
|
|
return $this->belongsTo(Customer::class);
|
|
|
|
}
|
|
|
|
}
|