app/Controllers/Http/PropertyController.js
/**
   * PUT or PATCH properties/:id
   */
PUT or PATCH properties/:id
PUT or PATCH properties / : id
async update ({ params, request }) {
    const property = await Property.findOrFail(params.id)
    const data = request.only([
      'title',
      'address',
      'latitude',
      'longitude',
      'price'
    ])
    property.merge(data)
    await property.save()
    return property
  }
async update ( { params , request } ) { const property = await Property . findOrFail ( params . id ) const data = request . only ( [ 'title' , 'address' , 'latitude' , 'longitude' , 'price' ] ) property . merge ( data ) await property . save ( ) return property }
PUT or PATCH properties/:id
PUT or PATCH properties / : id