How Retrieve the path of the url using laravel
if the incoming request is http://mydoubts.in/admin/login $uri=$request->path(); this will return admin/login is method verify the incoming request path matches the given pattern.we can use * character for this if($request->is(‘admin/*’)) { } Click here for more interview questions