with('device')->find($this->photoId); if ($photo === null) { return; } $scan->scanPhoto($photo); } }