Skip to content
Icon

WARNING You're browsing the documentation for an old version of LARAVEL-AUDITABLE. Consider upgrading your project to laravel-auditable 4.0.

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