From dd619e42603df041e1633fd9c08929b7e2494efb Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 28 Nov 2023 14:33:03 +0700 Subject: [PATCH] update model disposal --- app/Models/Disposal.php | 2 +- .../migrations/2023_11_17_075418_create_disposals_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Disposal.php b/app/Models/Disposal.php index 966bf75..9e8bf0d 100644 --- a/app/Models/Disposal.php +++ b/app/Models/Disposal.php @@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; class Disposal extends Model { - use HasFactory, SoftDeletes, UUID; + use HasFactory, SoftDeletes; protected $table = 'disposals'; protected $fillable = [ diff --git a/database/migrations/2023_11_17_075418_create_disposals_table.php b/database/migrations/2023_11_17_075418_create_disposals_table.php index 19f1b86..3dc4d3f 100644 --- a/database/migrations/2023_11_17_075418_create_disposals_table.php +++ b/database/migrations/2023_11_17_075418_create_disposals_table.php @@ -12,7 +12,7 @@ return new class extends Migration public function up(): void { Schema::create('disposals', function (Blueprint $table) { - $table->uuid('id')->primary(); + $table->id('id'); $table->uuid('mobile_id')->nullable(); $table->foreignId('peti_id')->constrained('petis'); $table->foreignId('customer_id')->nullable()->constrained('customers')->onDelete('set null');