/** * Update the character standing based on the type * * @param $characterID * @param $standing * @param $type */ public function _update_standing($characterID, $standing, $type) { $standing_info = Standing::firstOrNew(['characterID' => $characterID, 'fromID' => $standing->fromID]); $standing_info->fill(['type' => $type, 'fromName' => $standing->fromName, 'standing' => $standing->standing]); $standing_info->save(); return; }