url = $url; $record->type = $type; return $record->save(); } }