Laravel 5.5 Ratting System--> Error message

Posted in CategoryLaravel
  • Y
    Youness 8 months ago


    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 8 months ago

    you use this package right ?

  • Y
    Youness 8 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 *