bigIncrements('id'); $table->ipAddress('ip_address'); $table->string('type')->default(\Lab404\AuthChecker\Models\Login::TYPE_LOGIN); $table->bigInteger('user_id')->unsigned(); $table->bigInteger('device_id')->unsigned()->index()->nullable(); $table->timestamps(); // $table->index(['user_id', 'user_type']); }); } public function down() { Schema::dropIfExists('logins'); } }