2019_12_06_185939_create_loginlogs_table.php
779 Bytes
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLoginlogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('loginlogs', function (Blueprint $table) {
$table->id();
$table->string('username')->nullable();
$table->ipAddress('ip')->nullable();
$table->boolean('berhasil')->default(false);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('loginlogs');
}
}