I saw this question in StackOverflow, but I could not answer it because it was mistakenly marked as duplicate. However $user->posts is not the same as Posts::all(). So if you have User and Post, how do you sort the posts?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1MhKSsC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire