We sometimes require to get full url path with query string parameters that way we can perform on it. So we can get current url with also all parameter using several method of laravel.
There are several option to get full url with query string as listed bellow:
I give you three way to get full path with parameters, so you can see as bellow:
<pre class="prettyprint lang-php">
public function index()
$fullURL = \URL::full();
Laravel is the best framework in PHP todays. Laravel framework provide saveral functionality and you can also find from this site. But now in this post you can learn how to create custom middleware with passing parameters in laravel 5 example and how to use middleware with route parameters in laravel 5. In this example you can learn how to add middlware with check user have access role for this route from scratch in your laravel application.
I also added how to create middleware in my previous post, you can see that also.
In this example i added middleware for check use have role access for .....