- you can make use of Laravels HTTP request task
- it has helper functions like:
- is() which checks for a pattern which matches the current URI
- path() – strips of domain name and query string
- fullurl() – everything
- url() -everything exept query string
- tip is to store pages in a database and load navigation dynamically
You could add helper functions to assist with this, such as set_active($path) and include this in nav blade.