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