hotwired-laravel / turbo-laravel

This package gives you a set of conventions to make the most out of Hotwire in Laravel.
https://turbo-laravel.com
MIT License
803 stars 50 forks source link

Destroy resource #100

Closed Sanes closed 1 year ago

Sanes commented 1 year ago

Hello! CommentController

    public function destroy(Comment $comment)
    {
        $comment->delete();
        return turbo_stream()->remove($comment);
    }

Return to download file 18

<turbo-stream target="comment_18" action="remove">
</turbo-stream>
tonysm commented 1 year ago

Hey @Sanes

That looks like the expected behavior. What's the issue here?

I'm going to close the issue, but feel free to reopen it if you think something is not working as it should (with more context).