Erweiterungen / Korrekturen Beraterbestellungen
This commit is contained in:
parent
ecc71c616f
commit
c4ed6b39db
36 changed files with 1104 additions and 617 deletions
|
|
@ -140,6 +140,9 @@ class ShippingController extends Controller
|
|||
public function deleteCountry($id)
|
||||
{
|
||||
$model = ShippingCountry::findOrFail($id);
|
||||
if($model->shopping_orders->count()){
|
||||
abort(403, 'Einträge vorhanden');
|
||||
}
|
||||
$shipping = $model->shipping;
|
||||
$model->delete();
|
||||
\Session()->flash('alert-success', "Preis gelöscht");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue