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();