krgm.so-manager-dev.com/app/Models/Station.php
kin.rinzen 4df74f116c
All checks were successful
Deploy main / deploy (push) Successful in 24s
「指摘対応」SWA-65修正
2025-10-10 19:37:05 +09:00

27 lines
548 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Station extends Model
{
protected $table = 'station';
protected $primaryKey = 'station_id';
protected $fillable = [
'park_id',
'station_neighbor_station',
'station_name_ruby',
'station_route_name',
'operator_id',
'station_latitude', // ← 緯度
'station_longitude', // ← 経度
];
public function park()
{
return $this->belongsTo(Park::class, 'park_id', 'park_id');
}
}