From a5f6cb737ead7820a102480808a9f41ad3b9f055 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Sat, 23 Aug 2025 00:10:26 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/Models/City.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/City.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Models/City.php b/app/Models/City.php index 045f975..97cb3b1 100644 --- a/app/Models/City.php +++ b/app/Models/City.php @@ -7,11 +7,17 @@ use Illuminate\Database\Eloquent\Model; class City extends Model { protected $table = 'city'; - // プライマリーキーはLaravelのデフォルト('id')を使用 public $timestamps = true; + protected $primaryKey = 'city_id'; protected $fillable = [ - // 実際のカラム名が不明のため、一旦空にする + 'city_id', + 'city_name', + 'print_layout', + 'city_user', + 'city_remarks', + 'created_at', + 'updated_at', ]; /** @@ -21,4 +27,8 @@ class City extends Model { return self::all(); } + + + + }