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