delete libraryItem

This commit is contained in:
HolgerHatGarKeineNode
2023-02-16 17:42:49 +01:00
parent 4f4676a80b
commit 9b05c8eda5
2 changed files with 24 additions and 1 deletions

View File

@@ -77,6 +77,13 @@ class NewsArticleForm extends Component
return to_route('article.overview', ['country' => null]);
}
public function delete()
{
$this->libraryItem->delete();
return to_route('article.overview', ['country' => null]);
}
public function render()
{
return view('livewire.news.form.news-article-form');