Home > database >  Laravel 9 $currentPageUrl without pagination
Laravel 9 $currentPageUrl without pagination

Time:11-10

Current case

I Have that

<meta name="canonical" href="{!! $currentPageUrl !!}">

Get : www.domain.com/search?q=green word&page=2

I want

www.domain.com/search?q=green word

CodePudding user response:

can use this


request()->fullUrlWithoutQuery('page');
  • Related