all is working great
This commit is contained in:
1 parent
69f5df163a
commit
f850f40f78
11 files changed
+4609
-5282
No files matched your search
@@ -23,7 +23,7 @@ class VideoController extends Controller
|
||||
|
||||
public function index()
|
||||
{
|
||||
$videos = Video::public()->latest()->paginate(12);
|
||||
$videos = Video::public()->latest()->get();
|
||||
|
||||
return view('videos.index', compact('videos'));
|
||||
}
|
||||
@@ -42,7 +42,7 @@ class VideoController extends Controller
|
||||
->orWhere('description', 'like', "%{$query}%");
|
||||
})
|
||||
->latest()
|
||||
->paginate(12);
|
||||
->get();
|
||||
|
||||
return view('videos.index', compact('videos', 'query'));
|
||||
}
|
||||
@@ -491,7 +491,7 @@ class VideoController extends Controller
|
||||
->where('status', 'ready')
|
||||
->with('user')
|
||||
->latest()
|
||||
->paginate(12);
|
||||
->get();
|
||||
|
||||
return view('videos.shorts', compact('videos'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user