name = 'Australia'; $o->two_code = 'AU'; $o->three_code = 'AUS'; $o->currency_id = '61'; $o->active = TRUE; $oo = Currency::where('iso_code','AUD')->firstOrFail(); $oo->countries()->save($o); } }