CommaDelimitedCast::class, ]; public static $rules = [ 'active' => 'bool', 'airline_id' => 'integer', 'amount' => 'float', 'multiplier' => 'bool', 'charge_to_user' => 'bool', ]; /** * Foreign Keys */ public function airline() { return $this->belongsTo(Airline::class, 'airline_id'); } public function ref_model() { return $this->morphTo(); } }