2024-10-10 15:15:30 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-10-30 11:55:21 -04:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2025-02-01 09:57:57 -08:00
|
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
2024-10-10 15:15:30 -07:00
|
|
|
|
|
|
|
class Quote extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
2024-10-30 11:55:21 -04:00
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'body',
|
|
|
|
'order_id',
|
|
|
|
];
|
|
|
|
|
|
|
|
public function order(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Order::class);
|
|
|
|
}
|
2025-02-01 09:57:57 -08:00
|
|
|
|
|
|
|
public function embroideryEntries(): HasMany
|
|
|
|
{
|
|
|
|
return $this->hasMany(EmbroideryEntry::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function screenPrintEntries(): HasMany
|
|
|
|
{
|
|
|
|
return $this->hasMany(ScreenPrintEntry::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function heatTransferEntries(): HasMany
|
|
|
|
{
|
|
|
|
return $this->hasMany(HeatTransferEntry::class);
|
|
|
|
}
|
2024-10-10 15:15:30 -07:00
|
|
|
}
|