commit 08-2025

This commit is contained in:
Kevin Adametz 2025-08-12 18:01:59 +02:00
parent 9ae662f63e
commit 480fdc65ed
404 changed files with 65310 additions and 2600431 deletions

View file

@ -37,9 +37,11 @@ class ShippingController extends Controller
if($shipping_id === "new"){
$shipping = new Shipping();
$shipping->active = 1;
// For new shipping objects, create an empty collection for countries
$shipping->setRelation('countries', collect());
}else{
$shipping = Shipping::findOrFail($shipping_id);
$shipping = Shipping::with(['countries.country'])->findOrFail($shipping_id);
}
$data = [