Update NewResource.php