Laravel 5.2 Chatter Forum Package errors

Posted In Laravel
  • mohamud-ibrahim-1 2 years ago
    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?

    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?

  • alex-anonim 2 years ago
    Change in ChatterBeforeNewDiscussion "use Validaror" on "use Illuminate\Validation\Validator"
    It works for me! :D
    
    In ver. 0.2.7 is "use Validator"
    In ver. master in "use Illuminate\Validation\Validator"

    Change in ChatterBeforeNewDiscussion "use Validaror" on "use Illuminate\Validation\Validator" It works for me! :D

    In ver. 0.2.7 is "use Validator" In ver. master in "use Illuminate\Validation\Validator"

  • alejandro-fernandez 2 years ago
    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.

    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 2 years ago
    Thank you both. @Alex-anonim, your solution works thank you again

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

  • mark 2 years ago
    I have created a branch `fix-before-new-discussion-event` that should solve this. Mind testing it out before I merge?

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

  • kid-kidmanjoel 7 months ago
    Package errors are devised for the good and all effective items for the citizens. The overall items of the [college paper reviews](https://allessayvikings.com/review-on-college-paper-org/) a marked of the humans. The surrounding is fixed for the approval items for the humans.

    Package errors are devised for the good and all effective items for the citizens. The overall items of the college paper reviews a marked of the humans. The surrounding is fixed for the approval items for the humans.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!