Add ability to create tags from settings page
MODIFY
app/Http/Controllers/TagsController.php
app/Http/Controllers/TagsController.php
@@ -20,7 +20,7 @@ class TagsController extends Controller {
$tag->save();
- return redirect('/tags');
+ return redirect('/settings');
}
public function edit(Tag $tag) {

MODIFY
resources/views/settings.blade.php
resources/views/settings.blade.php
@else
<div class="box__section text-center">You don't have any tags</div>
@endif
+ <div class="box__section">
+ <form method="POST" action="/tags">
+ {{ csrf_field() }}
+ <input type="text" name="name" />
+ @include('partials.validation_error', ['payload' => 'name'])
+ <button>Submit</button>
+ </form>
+ </div>
</div>
</div>
@endsection

Add ability to create tags from settings page