From 59547f328b6f5c81d51b489ca75e4e95300d3109 Mon Sep 17 00:00:00 2001 From: Jasper Zonneveld Date: Thu, 17 Oct 2019 16:38:11 +0200 Subject: [PATCH] Disable timestamps This allows you to scrub tables without created_at and updated_at columns. --- src/Console/Scrub.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/Scrub.php b/src/Console/Scrub.php index 6d3937c..139ffeb 100644 --- a/src/Console/Scrub.php +++ b/src/Console/Scrub.php @@ -75,6 +75,7 @@ private function makeModel($table, $attributes) return tap(new class extends Model { public $exists = true; + public $timestamps = false; protected $guarded = []; }, function ($model) use ($table, $attributes) { $model->setTable($table);