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
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CustomOrderFile extends Model
{
protected $fillable = [
'custom_order_id',
'file_type',
'file_path',
'original_filename',
'file_size',
'mime_type',
'uploaded_by',
];
/**
* Get the custom order that owns this file
*/
public function customOrder(): BelongsTo
{
return $this->belongsTo(CustomOrder::class);
}
/**
* Get the user who uploaded this file
*/
public function uploadedByUser(): BelongsTo
{
return $this->belongsTo(User::class, 'uploaded_by');
}
}