🗃️ Gère les tags en BDD

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

View File

@@ -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) {