show-exam

This commit is contained in:
xiaomlove
2021-04-25 21:28:58 +08:00
parent 512af7511d
commit 7cfde3f95b
13 changed files with 206 additions and 17 deletions

View File

@@ -2,9 +2,13 @@
namespace App\Console\Commands;
use App\Models\Exam;
use App\Models\ExamProgress;
use App\Models\ExamUser;
use App\Models\User;
use App\Repositories\ExamRepository;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class Test extends Command
@@ -40,9 +44,8 @@ class Test extends Command
*/
public function handle()
{
$examRep = new ExamRepository();
$user = User::query()->find(1);
$r = $examRep->assignToUser($user->id);
$rep = new ExamRepository();
$r = $rep->listUserExamProgress(1);
dd($r);
}
}