Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Comment" interaction on User/Model ? #73

Closed
dgillier opened this issue Nov 22, 2021 · 2 comments
Closed

"Comment" interaction on User/Model ? #73

dgillier opened this issue Nov 22, 2021 · 2 comments

Comments

@dgillier
Copy link

Hi there !

Looks great, I'm wondering if you have plan to add a "Comment" interaction on User/Model ?
Or any suggestion on how to implement this ?

Thanks , Denis

@mkwsra
Copy link
Member

mkwsra commented Nov 22, 2021

Hi Denis,

Honestly, I don't think so, however, if you wish here are some files which will getting up and running with comments functionality with the most requested features with comments, like nested comments and other stuff :)

Comment model is using this library:
https://github.com/etrepat/baum, and if you are facing problem installing it use simply this tutorial :) etrepat/baum#332

comments.zip

Steps:

  1. Make sure Baum is installed as mentioned
  2. Download the zip file and move these 3 files into their own location: Migrations, Models, Traits (if you don't have it create it).
  3. In your Post or Article model just add this trait use Commentable; it's located in use App\Traits\Commentable; see the zip file.

if you face any problem let me know 😃

Cheers,
MK

@dgillier
Copy link
Author

@mkwsra Great, thanks a lot Mohamed !

@mkwsra mkwsra closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants