mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
add tags to posts
This commit is contained in:
parent
2f95117389
commit
c77c97be2d
5 changed files with 26 additions and 3 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue