9.11. 筛选话题(二)
本节说明
本节我们来添加一个新的过滤条件:按照回复数量来筛选。
新增测试
从新增测试开始:
tests/Feature/Questions/FilterQuestionsTest.php
<?php
namespace Tests\Feature;
use App\Models\Answer;
use App\Models\Category;
use App\Models\Question;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase