Update ForumController and routes for deleting forum

This commit is contained in:
DariusIII
2018-04-19 12:39:16 +02:00
parent 0e0915fcde
commit a00278d313
7 changed files with 26 additions and 4 deletions
+17
View File
@@ -163,4 +163,21 @@ class ForumController extends BasePageController
);
$this->pagerender();
}
/**
* @param $id
*
* @return \Illuminate\Http\RedirectResponse
* @throws \Exception
*/
public function destroy($id)
{
$this->setPrefs();
if ($id) {
Forumpost::deletePost($id);
}
return redirect()->back();
}
}