Answer the question
In order to leave comments, you need to log in
How to properly get value from another Laravel table?
I must say right away that I am new to Laravel.
public static function getComments() {
$data = DB::table('comments')
->orderBy('id', 'desc')
->paginate(20);
return $data;
}
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