I suggest taking the free learning laravel in 30 days course. You'll learn basic relations from which you can build from.
Looping in laravel
I am working on a review management system in which I am getting user id in the database from which I have to retrieve the data of the user like the name which will be shown in the view. For example if we have 10 comments added in the database with their publisher's user id we will have to get their name and show them simultaneously before the review.
I am using foreach loop in which every review is shown but how can I display the publishers name on the review block. For example: - -> Publish date -> Publisher's Name -> Review
So here I am not able to show the publisher's name, I have tried doing it with foreach but it display all the names in that column where as I have to show a particular name of one publisher by the id which has been entered in the database while writing the review
Please or to participate in this conversation.