add tags to posts

This commit is contained in:
yuriko 🦊 2025-05-24 22:01:27 -04:00
parent 2f95117389
commit c77c97be2d
5 changed files with 26 additions and 3 deletions

View file

@ -46,4 +46,10 @@ class DeletionController extends Controller
$tagGroup->delete();
return redirect()->route('tags.groups');
}
public function deletePostTag(Post $post, Tag $tag)
{
$post->tags()->detach($tag);
return redirect("/posts/$post->id/edit");
}
}