Skip to content
Icon

WARNING You're browsing the documentation for an upcoming version of Laravel Auditable. The documentation and features of this release are subject to change.

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();
});