diff --git a/app/Models/History.php b/app/Models/History.php index 504f2cbf82..4601ce56e0 100644 --- a/app/Models/History.php +++ b/app/Models/History.php @@ -19,6 +19,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use DateTimeInterface; +use Illuminate\Database\Eloquent\SoftDeletes; /** * App\Models\History. @@ -44,6 +45,7 @@ class History extends Model { /** @use HasFactory<\Database\Factories\HistoryFactory> */ use HasFactory; + use SoftDeletes; /** * The Database Table Used By The Model. diff --git a/database/migrations/2024_12_06_004504_add_soft_deletes_to_history_table.php b/database/migrations/2024_12_06_004504_add_soft_deletes_to_history_table.php new file mode 100644 index 0000000000..1a87ec4755 --- /dev/null +++ b/database/migrations/2024_12_06_004504_add_soft_deletes_to_history_table.php @@ -0,0 +1,16 @@ +softDeletes()->after('updated_at'); + }); + } +};