i try return multiples fields from different tables in just one request, example
properties table
-id
-name
-address
rules table
-id
-checkin
-propertyId
i hope a response just like that
[
id=>123,
name=>Name,
address=>Main Street,
checkin:10:00
]
And i would like that this can be used by default in all futures request, all(), first(), get()
Note: I can't use relationship because I need to join two tables in just one
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2sBkHdB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire