Skip to content

Auditable Schema Blueprint

Adding auditable fields

Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name', 100);
$table->auditable();
$table->timestamps();
});

Dropping auditable fields

Schema::create('users', function (Blueprint $table) {
$table->dropAuditable();
});