async store({ auth, request }) {
    const { id } = auth.user;
    const data = request.only([
      "title",
      "address",
      "latitude",
      "longitude",
      "price",
      "type"
    ]);

    const property = await Property.create({ ...data, user_id: id });

    return property;
  }
/**
   * Create/save a new property.
   * POST properties
   */
Create/save a new property.
POST properties
Create / save a new property . POST properties
async store({ auth, request }) {
    const { id } = auth.user;
    const data = request.only([
      "title",
      "address",
      "latitude",
      "longitude",
      "price",
      "type"
    ]);
    const property = await Property.create({ ...data, user_id: id });
    return property;
  }
async store ( { auth , request } ) { const { id } = auth . user ; const data = request . only ( [ "title" , "address" , "latitude" , "longitude" , "price" , "type" ] ) ; const property = await Property . create ( { ... data , user_id : id } ) ; return property ; }
Create/save a new property.
Create / save a new property .