'array', 'rms_end_latlng' => 'array' ]; /** * Get all of the project's files. */ public function files() { return $this->morphMany('App\Models\ProjectFile', 'project_fileable'); } public function problemHistories() { return $this->hasMany('App\Models\RoadObservedHistory', 'problem_id'); } public function province() { return $this->belongsTo('App\Models\Province', 'rms_province_id'); } public function city() { return $this->belongsTo('App\Models\City', 'rms_city_id'); } public function edarateShahri() { return $this->belongsTo('App\Models\EdarateShahri', 'edarate_shahri_id'); } }