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