Add ability to destroy tags from settings page
MODIFY
app/Http/Controllers/TagsController.php
app/Http/Controllers/TagsController.php
@@ -38,6 +38,6 @@ class TagsController extends Controller {
public function destroy(Tag $tag) {
$tag->delete();
- return redirect()->route('tags');
+ return redirect('/settings');
}
}

MODIFY
resources/assets/sass/components/input.scss
resources/assets/sass/components/input.scss
@@ -28,4 +28,11 @@ button {
&:hover {
cursor: pointer;
}
+
+ &.link {
+ padding: 0;
+ font-size: 16px;
+ color: $colors-primary;
+ background: none;
+ }
}

MODIFY
resources/views/settings.blade.php
resources/views/settings.blade.php
<i class="fa fa-pencil"></i>
</a>
</div>
+ <div class="row__column row__column--compact ml-2">
+ <form method="POST" action="/tags/{{ $tag->id }}">
+ {{ method_field('DELETE') }}
+ {{ csrf_field() }}
+ <button class="link">
+ <i class="fa fa-trash"></i>
+ </button>
+ </a>
+ </div>
</li>
@endforeach
</ul>

Add ability to destroy tags from settings page