You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model and I added the Hootlex\Moderation\Moderatable trait as below
use Hootlex\Moderation\Moderatable;
class Post extends Model
{
use Moderatable;
...
}
But my index blade that returns a list of submitted posts does not show unless I remove use Moderatable; from my model. So instead I added the trait to my controller, but now when I try to approve the post it gives this error Call to undefined methodpending()reject() or postpone() . I also tried other ways to moderate an instance of a model provided in the documentation, and I get the same error. Please assist on a solution for thus error
The text was updated successfully, but these errors were encountered:
I go the solution. So I found out if the strict mode is set to true it won't display resources unless approved public static $strictModeration = false;
So I then set it to false in order to edit the resources
I have a model and I added the
Hootlex\Moderation\Moderatable
trait as belowBut my index blade that returns a list of submitted posts does not show unless I remove
use Moderatable;
from my model. So instead I added the trait to my controller, but now when I try to approve the post it gives this error Call to undefined methodpending()
reject()
orpostpone()
. I also tried other ways to moderate an instance of a model provided in the documentation, and I get the same error. Please assist on a solution for thus errorThe text was updated successfully, but these errors were encountered: