Skip to content

Commit

Permalink
fixed issue-route:promo-codes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdparvej45 committed Mar 29, 2024
1 parent 500c024 commit 3228227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Frontend/Page/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function becomePartnerPage()
public function PromoCodePage()
{
$user_id = Auth::user()->id;
$promoCodes = User::find($user_id)->promoCodes()->where('status', 1)->get();
$promoCodes = User::find($user_id)->promoCodes()->where('status', 1)->latest()->get();
return view('frontend.pages.promoCodesPage', compact('promoCodes'));
}

Expand Down

0 comments on commit 3228227

Please sign in to comment.