yoco updated to use webhook

This commit is contained in:
twotalesanimation
2025-12-29 14:43:24 +02:00
parent 6de01c13c5
commit 00b8ff77b2
123 changed files with 6959 additions and 12669 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CustomOrderSpecification extends Model
{
protected $fillable = [
'custom_order_id',
'length',
'width',
'height',
'print_stock_id',
'quantity',
'special_instructions',
];
protected $casts = [
'length' => 'decimal:2',
'width' => 'decimal:2',
'height' => 'decimal:2',
'quantity' => 'integer',
];
/**
* Get the custom order that owns this specification
*/
public function customOrder(): BelongsTo
{
return $this->belongsTo(CustomOrder::class);
}
/**
* Get the print stock
*/
public function printStock(): BelongsTo
{
return $this->belongsTo(PrintStock::class);
}
}