Untested but my guess is
$tags = $post->tags;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. I'm working on implementing Spatie tags to a project I'm working on and everything seems to be working fine, I can return posts based on the tags (all or any), create and detach tags and types, however what I want to do is display all the active tags for a post.
I've been over the documentation and I'm not sure how I can do this. I know I can return a post based on the tags selected (so, NEWS, SPECIAL OFFER etc), but when I'm on the post itself, I just need to display those tags in a list below it.
I'm probably being really dumb and misreading something, but can someone tell me how I'd do this?
Thanks!
Untested but my guess is
$tags = $post->tags;
Please or to participate in this conversation.