cleaning day

This commit is contained in:
ludo
2024-02-22 21:28:33 +01:00
parent 64a218afc2
commit fb6da523fa
111 changed files with 198 additions and 2456 deletions

View File

@@ -3,6 +3,8 @@
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
use Illuminate\Database\Eloquent\SoftDeletes;
use Staudenmeir\EloquentHasManyDeep\HasRelationships;
use Venturecraft\Revisionable\RevisionableTrait;
@@ -33,12 +35,12 @@ class Delivery extends Model
'event_date_end',
];
public function customers()
public function customers(): HasManyThrough
{
return $this->hasManyThrough(Customer::class, CustomerSaleChannel::class);
}
public function sale_channel()
public function sale_channel(): BelongsTo
{
return $this->belongsTo(SaleChannel::class);
}