🗃️ Gère les tags en BDD

Fix #8
This commit is contained in:
Shikiryu committed 2020-03-17 09:51:20 +01:00
1 parent 73b8c03481
commit 1a6677b8aa
2 files changed
+71 -1

No files matched your search

@@ -115,7 +115,6 @@ class DashboardController extends Controller
->where('user_id', Auth::user()->getAuthIdentifier())
->firstOrFail();
/** @var Post $today_post */
$today_post->deleteTags();
$today_post->delete();
return Redirect::to('home')->withSuccess('Great! Your today\'s post is now deleted. You can make a new one!');
} catch (\ErrorException $e) {