allow defaultCountry also in edit.blade

This commit is contained in:
David Große 2020-01-08 14:56:22 +01:00
parent c346770ab1
commit e962dbc988
1 changed files with 6 additions and 2 deletions

View File

@ -115,10 +115,14 @@ class AddressController extends Controller
'customer_id' => auth()->guard('customer')->user()->id,
]);
if (! $address)
if (! $address) {
abort(404);
}
return view($this->_config['view'], compact('address'));
return view($this->_config['view'], array_merge(
compact('address'),
['defaultCountry' => config('app.default_country')]
));
}
/**