Answer the question
In order to leave comments, you need to log in
What is the best way to link tables?
Questions are stored in one table.
It contains the id of the person who asked
. The user id contains a field with the user's photo. (url)
I pass questions to the questions page like this $ArQuest = \App\Models\Question::paginate(15);
How to link questions to users so that in the view you can get a photo of the user who asked the question?
How will it be done right?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question