I have two tables posts and sharedposts. sharedposts table has columns "user_id", "updated_at" and "post_id" where as posts table has 'id', 'title' and 'body'. I know about the relations to link both tables. All i want to do is to display each post ordered by 'updated_at' from both the tables. Please help with both query builder and eloquent way. Thanku
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2f4teeD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire