$travel_programs * @property-read int|null $travel_programs_count * @method static \Illuminate\Database\Eloquent\Builder|TravelArrivalPoint whereActive($value) * @method static \Illuminate\Database\Eloquent\Builder|TravelArrivalPoint whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|TravelArrivalPoint whereTravelCountryId($value) * @mixin \Eloquent */ class TravelArrivalPoint extends Model { protected $connection = 'mysql_stern'; protected $table = 'travel_arrival_point'; public $timestamps = false; protected $casts = [ 'travel_country_id' => 'int', ]; protected $fillable = [ 'name', 'travel_country_id', 'active' ]; public function travel_programs() { return $this->hasMany(TravelProgram::class, 'travel_arrival_point_id'); } //on crm /* public function travel_country_crm() { return $this->belongsTo('App\Models\Sym\TravelCountry', 'travel_country_id', 'crm_id'); } */ //on stern DB relaunch public function travel_country() { return $this->belongsTo('App\Models\TravelCountry', 'travel_country_id', 'id'); } }