How to get current URL with parameters in Laravel 5

How to get current URL with parameters in Laravel 5

In this post, I will tell you how can you get base url, current url with query string and url segment in Laravel.

While working with Laravel, i need many times to get current url and its segment, you can get current url by using helper function URL::current().

How to get current URL without query string in Laravel

  1. return \URL::current();
  2. OR
  3. return \Request::url();
How to get current URL with query string in Laravel

  1. return \Request::fullUrl();
How to get url parameters in Laravel

You can easily get your url segment in Laravel by using segment method. Let's assume i have a url with some query string.

www.domain.tld/user/list?page=2


  1. $url_segment = \Request::segment(3);

Phone: (+91) 8800417876
Noida, 201301
ataşehir escort maltepe escort bostancı escort kadıköy escort maltepe escort ataşehir escort tuzla escort pendik escort ümraniye escort kartal escort
pendik escort
izmir escort izmir escort izmir escort izmir escort denizli escort antalya escort antalya escort antalya escort izmir escort izmir escort izmir escort izmir escort izmir escort
hatay escort nevsehir escort nigde escort kirikkale escort batman escort osmaniye escort kirklareli escort tokat escort rize escort adiyaman escort gumushane escort batman escort
porno izle
sohbet okey oyna
cialis satış cialis fiyat cialis 20 mg cialis 100 mg cialis 5 mg fiyat

viagra fiyatı

viagra 100 mg fiyat

viagra sipariş

orjinal viagra

viagra satın al

izmir escort