I am new to laravel and php
I am using Actuallymab/comment to make a comment system for my app.
I tested it with this :
testcommenteract.php
<?php
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
use App\User;
Use App\Post;
$user = App\User::first();
$product = App\Post::first();
// $user->comment(Commentable $model, $comment = '', $rate = 0);
$user->comment($product, 'Lorem ipsum ..', 3);
// approve it -- if the user model `canCommentWithoutApprove()` or you don't use `mustBeApproved()`, it is not necessary
$product->comments[0]->approve();
// get avg rating -- it calculates approved average rate.
$product->averageRate();
// get total comments count -- it calculates approved comments count.
$product->totalCommentsCount();
It gives me this error:
Fatal error: Trait 'App\Commenter' not found in C:\xampp2\htdocs\galaxall\app\User.php on line 15
please help