mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
delete libraryItem
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user