Feedback / Draft + extra days
This commit is contained in:
parent
6e0c7e8706
commit
f9fcaac838
13 changed files with 453 additions and 395 deletions
|
|
@ -127,17 +127,15 @@ class DraftController extends Controller
|
|||
|
||||
|
||||
$draft->delete();
|
||||
\Session()->flash('alert-save', '1');
|
||||
\Session()->flash('alert-success', __('Vorlage gelöscht'));
|
||||
return redirect(route('drafts'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function itemDelete($id){
|
||||
$draft_item = DraftItem::findOrFail($id);
|
||||
$draft_id = $draft_item->draft_id;
|
||||
$draft_item->delete();
|
||||
\Session()->flash('alert-success', 'Eintrag gelöscht');
|
||||
\Session()->flash('alert-success', __('Eintrag gelöscht'));
|
||||
return redirect(route('draft_detail', [$draft_id]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue