Laravel 5.2 Chatter Forum Package errors

mohamud-ibrahim-1

Mar 26th, 2017 06:14 AM

Hi, I am using your chatter forum in laravel 5.2 and it gives me the following error. "Type error: Argument 2 passed to DevDojo\Chatter\Events\ChatterBeforeNewDiscussion::__construct() must be an instance of Illuminate\Support\Facades\Validator, instance of Illuminate\Validation\Validator given, called in /home/mahmood/work/aalaauddin/vendor/devdojo/chatter/src/Controllers/ChatterDiscussionController.php on line 66" Can please someone please help?

alejandro-fernandez

Mar 26th, 2017 04:14 PM

Dear Mohamud-ibrahim-1, go to vendor/devdojo/src/Events/ChatterBeforeNewDiscussion.php and in the construct delete the validator param, the same with this $this->validator = $validator; and you will able to do the comment with out validation. At least is a solution while the fix are documentated.

mohamud-ibrahim-1

Mar 27th, 2017 05:14 AM

Thank you both. @Alex-anonim, your solution works thank you again

mark

Mar 28th, 2017 06:13 PM

I have created a branch fix-before-new-discussion-event that should solve this. Mind testing it out before I merge?