Skip to content

Commit

Permalink
Changed position showing
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Apr 24, 2024
1 parent 9894aac commit fe2928d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/PositionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit fe2928d

Please sign in to comment.