From 6d78f04690f54f162a1ee2497bd342e8a152a472 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 2 Jun 2026 17:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=97=E4=BA=AD=E7=AE=A1=E7=90=86=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ParkingGuardBooth.php | 2 +- app/Services/ParkingGuardBoothService.php | 4 ++-- .../2026_06_02_143449_create_parking_guard_booth_table.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/ParkingGuardBooth.php b/app/Models/ParkingGuardBooth.php index 769a5eb..02079f5 100644 --- a/app/Models/ParkingGuardBooth.php +++ b/app/Models/ParkingGuardBooth.php @@ -16,7 +16,7 @@ class ParkingGuardBooth extends Model protected $fillable = [ 'name', - 'remake' + 'remark' ]; protected $hidden diff --git a/app/Services/ParkingGuardBoothService.php b/app/Services/ParkingGuardBoothService.php index 9111f49..efc8409 100644 --- a/app/Services/ParkingGuardBoothService.php +++ b/app/Services/ParkingGuardBoothService.php @@ -30,7 +30,7 @@ class ParkingGuardBoothService extends BaseService $model = ParkingGuardBooth::query()->create([ 'name' => $data['name'], - 'remake' => $data['remake'] ?? '', + 'remark' => $data['remark'] ?? '', 'created_at' => get_datetime() ]); @@ -82,7 +82,7 @@ class ParkingGuardBoothService extends BaseService $model->update([ 'name' => $data['name'], - 'remake' => $data['remake'] ?? '', + 'remark' => $data['remark'] ?? '', 'updated_at' => get_datetime() ]); diff --git a/database/migrations/2026_06_02_143449_create_parking_guard_booth_table.php b/database/migrations/2026_06_02_143449_create_parking_guard_booth_table.php index 5d9e687..d69de62 100644 --- a/database/migrations/2026_06_02_143449_create_parking_guard_booth_table.php +++ b/database/migrations/2026_06_02_143449_create_parking_guard_booth_table.php @@ -14,7 +14,7 @@ return new class extends Migration Schema::create('parking_guard_booth', function (Blueprint $table) { $table->id(); $table->string('name', 50)->comment('岗亭名称'); - $table->string('remake', 255)->default('')->comment('备注'); + $table->string('remark', 255)->default('')->comment('备注'); $table->timestamps(); $table->softDeletes(); $table->innoDb();