I am a newbie to Laravel.
I have written a controller which will join 3 table and return the rows and then on the model they will shown as table using pagination
On the model, I need to get the id of a particular table.
The problem is the id field is a common name in all tables. When i do $rec->id its is not fetching the id which i am expecting.
I tried googling on how to create an alias name for my column but it is not working and usually get some sql errors.
Can someone please suggest a solution.
Thanks.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TUnSCD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire