Lakshan-Madushanka / laravel-comments

Integrate seamless commenting functionality into your Laravel project
https://lakm.gitbook.io/commenter/
MIT License
217 stars 5 forks source link

How to integrate with Filamentphp? #9

Closed Mohammed-800 closed 2 months ago

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Thanks for the very first issue. Could you please clarify what you mean? I'm not sure I understand.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka Do you know about Filamentphp ? https://filamentphp.com

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka how to add action for add new comment List of post ?

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 I know Filamentphp. In fact admin-panel of the commenter uses filament. But I really don't understand what you mean.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka I want to add action button every column for add comment

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Perhaps you mean something like this

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka

when click button comment open slide for add comment see to photoses image after click I wann like this image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 I got it. This has already implemented in admin-panel

You can use it to manage comments.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka I want to use the comments inside admin panel for any Resource

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka At the same time, I want to activate comments within the admin panel, not controlling them.

Lakshan-Madushanka commented 2 months ago

@Lakshan-Madushanka I want to use the comments inside admin panel for any Resource

Admin-panel package filter for all the resources that has used commenter. Please try it and see.

Lakshan-Madushanka commented 2 months ago

@Lakshan-Madushanka At the same time, I want to activate comments within the admin panel, not controlling them.

Did you mean approve comments. If so admin-panel has exact functionality.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka I have bug when composer require lakm/laravel-comments-admin-panel -W image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Fix it with this. Please tell me if it works now. Thanks for pointing this.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka still that bug image

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka see to photos maybe you can understand me what I mean I don't need to admin panel comments ,I want to use the comment inside my admin panle for user can comment on records

image image image image

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Admin panel should work as expected. It was my mistake that I didn't release new version.

It seems like you want to use this inside your own admin panel. You can do that but you haven't setup the package properly. Error in the last image has occurs as you haven't implemented relevant interfaces in your models please consult documentation's installation and usage sections. You can also see demo videos.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka still error last my image image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 What is the error ? have you implemented CommnterContract in your user model

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka do you mean like thisn ?

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 You should also implement the CommenterContract

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka like this ? image after implement see why is it like this?

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Because you haven't included styles. Could you please go through the documentation.

@Mohammed-800 Admin panel should work as expected. It was my mistake that I didn't release new version.

It seems like you want to use this inside your own admin panel. You can do that but you haven't setup the package properly. Error in the last image has occurs as you haven't implemented relevant interfaces in your models please consult documentation's installation and usage sections. You can also see demo videos.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka ok but brother I don't have layout where I can include styles? PLASE

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 wherever your html those assets are simply wrappers around packages's css and js so put them as you normally does.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka not work image

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka see this image

image

Lakshan-Madushanka commented 2 months ago

@Mohammed-800 Clearly assets haven't added correctly try installing npm dependencies and running dev server

If it is still getting errors. I recommend you to setup the demo project which works fine if you follow the instructions to get insight about the project. Study it you will be able to debug yourself.

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka My brother, I want your help. Please help me. I am confused. I could not activate the comment feature in this way. I have the button to create a new comment that should be activated automatically. I want to do an example, you and I. I will be very grateful to you.

image

Mohammed-800 commented 2 months ago

@Lakshan-Madushanka when click button blue create not show text box, And I want enable as Authmode alows