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');