Update ProductController.php

improving assignCategory ...