From fe2928d3d5cd422260e7516f7c559ece7be69ac5 Mon Sep 17 00:00:00 2001 From: tabuna Date: Wed, 24 Apr 2024 04:18:59 +0300 Subject: [PATCH] Changed position showing --- app/Http/Controllers/PositionsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/PositionsController.php b/app/Http/Controllers/PositionsController.php index 3aaa103d..e2a002c0 100644 --- a/app/Http/Controllers/PositionsController.php +++ b/app/Http/Controllers/PositionsController.php @@ -19,7 +19,7 @@ public function jobs() { $positions = Position::approved() ->with(['author']) - ->whereDate('created_at', '>=', now()->subMonth()) + ->whereDate('created_at', '>=', now()->subMonths(2)) ->orderBy('id', 'desc') ->cursorPaginate(3); @@ -122,7 +122,7 @@ public function delete(Request $request, Position $position) public function list(Request $request) { $positions = Position::with(['author']) - ->whereDate('created_at', '>=', now()->subMonth()) + ->whereDate('created_at', '>=', now()->subMonths(2)) ->orderBy('id', 'desc') ->cursorPaginate(3); @@ -151,7 +151,7 @@ public function latest() { $positions = Position::approved() ->with(['author']) - ->whereDate('created_at', '>=', now()->subMonth()) + ->whereDate('created_at', '>=', now()->subMonths(2)) ->orderBy('id', 'desc') ->limit(3) ->get();