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