Update Resource.php