laravelista / comments

Native comments for your Laravel application.
MIT License
744 stars 142 forks source link

unable to use two different gurd for comment #153

Closed sarojbrt1 closed 3 years ago

sarojbrt1 commented 3 years ago

unable to use two different gurd for comment , when i try to comment with diffrent it redirect to login page..

mabasic commented 3 years ago

Could you explain more on what you are trying to do?

sarojbrt1 commented 3 years ago

i have two different user login guard.. and two different user should be able to comment in same post.. i am able to comment from user side but when i try to comment by branch it redirect to login page... any solution??

sarojbrt1 commented 3 years ago

@mabasic waiting for your response..

mabasic commented 3 years ago

It all depends on your application and how you handle two different user models logging in. This package supports different user models being the Commenter, If you can pass the default (Auth::check) with both users then all should be fine. This package grabs the user from $request->user(). Check the package views if they need changing and/or the CommentController.