commit 08-2025
This commit is contained in:
parent
9ae662f63e
commit
480fdc65ed
404 changed files with 65310 additions and 2600431 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue