create(); $asset->model_id = null; $asset->forceSave(); $asset->refresh(); $this->assertNull($asset->fresh()->model_id, 'This test needs model_id to be null to be helpful.'); $this->actingAs(User::factory()->superuser()->create()) ->get(route('hardware.show', $asset)) ->assertOk(); } }