I'm trying to get my comments to display if my feedback is true, but nothing is showing, and I'm getting an empty array. Some comments have feedback = true
.
public function getComments(Post $post)
{
foreach($post->comments as $comment)
{
if($comment->feedback == true)
{
dd($comment);
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…