Fix bug with destroy function in TagsController with unfinished if-statement
MODIFY
app/Http/Controllers/TagsController.php
app/Http/Controllers/TagsController.php
@@ -36,8 +36,7 @@ class TagsController extends Controller {
}
public function destroy(Tag $tag) {
-
- if ($tag->somethign) {
+ if (!$tag->spendings->count()) {
$tag->delete();
}

Fix bug with destroy function in TagsController with unfinished if-statement