'array', 'project_distance' => 'array', 'project_distance_update' => 'array', 'start_latlng' => 'array', 'end_latlng' => 'array' ]; public function user() { return $this->belongsTo('App\Models\User'); } /** * Get all of the project's files. */ public function files() { return $this->morphMany('App\Models\ProjectFile', 'project_fileable'); } public function projectHistories() { return $this->hasMany('App\Models\RoadConstructionRuralHistory', 'project_id'); } public function latestHistory() { return $this->hasOne('App\Models\RoadConstructionRuralHistory', 'project_id')->latest(); } public function province() { return $this->belongsTo('App\Models\Province'); } public function city() { return $this->belongsTo('App\Models\City'); } }