در این سورس کد
class CreateTwoFactorTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('two_factor', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id')->unsigned()->unique();
$table->char('code',10);
$table->timestamps();
});
}
منظور از این سورس کد چیه
$table->bigInteger('user_id')->unsigned()->unique();
ایا داره یک رابطه one to one ابجاد میکنه؟
اگر اره چرا از این روش چون روشی که سایت لاراول گفته یجور دیگس