aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/NewsController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Controllers/NewsController.php')
-rw-r--r--app/Http/Controllers/NewsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/Controllers/NewsController.php b/app/Http/Controllers/NewsController.php
index 306066c..de7a823 100644
--- a/app/Http/Controllers/NewsController.php
+++ b/app/Http/Controllers/NewsController.php
@@ -19,7 +19,7 @@ class NewsController extends Controller
*/
public function index()
{
- $news = Post::orderBy('created_at', 'desc')->get();
+ $news = Post::orderBy('created_at', 'desc')->paginate(6);
//$data = ['news' => $news];
//return view('pages.news')->with($data);