K
Size: a a a
SN
K
VY
public function video(Category $category, Video $video){
$videos = $category
->videos()
->orderBy('created_at', 'DESC')
->paginate(5)
->map(function (Video $video) use ($category) {
return $video->setRelation('category', $category);
});
$lastposts = Post::select('id', 'title','created_at', 'counter', 'category_id')
->with('category')
->orderBy('created_at', 'DESC')
->limit(5)
->get();
return view('video.list', compact('category', 'lastposts', 'videos'));
}
K
K
VY
SN
Column not found: 1054 Unknown column 'frame.lesson_contents.hidden' in 'where clause'
K
K
K
YA
K
YA
YA
K
$vid = $category
->videos()
->orderBy('created_at', 'DESC')
->paginate(5);
$videos = $vid->map(function (Video $video) use ($category) {
return $video->setRelation('category', $category);
});
VY
K
J
VY
$vid = $category
->videos()
->orderBy('created_at', 'DESC')
->paginate(5);
$videos = $vid->map(function (Video $video) use ($category) {
return $video->setRelation('category', $category);
});