protected function createPublisherRelation() { try { $publisher = Publisher::findOrFail(array_get($this->input, 'publisher_id', null)); $this->object->publisher()->associate($publisher); } catch (ModelNotFoundException $e) { // Model not found, do not set } }