Skip to content

Instantly share code, notes, and snippets.

@spacebiscuit
Created October 9, 2018 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacebiscuit/59a4ebbade0ea1e96f8b0a5faaf61735 to your computer and use it in GitHub Desktop.
Save spacebiscuit/59a4ebbade0ea1e96f8b0a5faaf61735 to your computer and use it in GitHub Desktop.
PropertyPeriods hasMany PropertyPrices
PropertyPrices belongsTo PropertyPeriods
[
'rentalperiod' => '22/03/18 - 18/04/18',
'property_prices' => [
(int) 0 => [
'price' => '50',
'room_id' => '30',
'property_id' => '51'
],
(int) 1 => [
'price' => '55',
'room_id' => '31',
'property_id' => '51'
],
(int) 2 => [
'price' => '65',
'room_id' => '32',
'property_id' => '51'
],
(int) 3 => [
'price' => '100',
'room_id' => '33',
'property_id' => '51'
],
(int) 4 => [
'price' => '105',
'room_id' => '55',
'property_id' => '51'
]
],
'id' => '103'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment