CommandCommand calls collect(...)->first() on the API response without null checking. If the API returns an empty response, $command becomes null and the next $command->status access throws an error.
Should add a null check after the collection lookup.
CommandCommandcallscollect(...)->first()on the API response without null checking. If the API returns an empty response,$commandbecomes null and the next$command->statusaccess throws an error.Should add a null check after the collection lookup.