Laravel 5.5 Ratting System--> Error message

Posted in CategoryLaravel
  • Y
    Youness 3 months ago

    Hi,

    I got the following error message when I click on "submit review" button of the Laravel Rateable composer package

    "Method Illuminate\Database\Query\Builder::ratings does not exist."


    Any idea on how to resolve this problem?

    In advance, thank you.

     

  • K
    Kashiyani vimal 3 months ago

    you use this package right ?

    https://github.com/willvincent/laravel-rateable/blob/master/composer.json

  • Y
    Youness 3 months ago

    HI, Yes, and the problem is solved. I forgot to add the following line of code to my "Post.php" class :

    use willvincent\Rateable\Rateable;

    Thank you very much for your super quality tuturials you provide in your websites.

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *