exam-user

This commit is contained in:
xiaomlove
2021-04-25 02:12:14 +08:00
parent a0c7a7e5dc
commit 0c5f3d935d
28 changed files with 869 additions and 92 deletions
+6 -1
View File
@@ -2,6 +2,8 @@
namespace App\Console\Commands;
use App\Models\User;
use App\Repositories\ExamRepository;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Hash;
@@ -38,6 +40,9 @@ class Test extends Command
*/
public function handle()
{
dd(strlen(Hash::make('123456')));
$examRep = new ExamRepository();
$user = User::query()->find(1);
$r = $examRep->assignToUser($user->id);
dd($r);
}
}