you can get current url segment using Request facade.
class Active or not (Navigation menu Active or Not)
How to get all segment of url
Trending Tutorials
Ittutorial