Although the title may appear odd, I will provide a brief explanation. In my admin section, I have extended a layout with a Sidebar that is displayed as a bootstrap list on every page.
Depending on the current page, I want to apply an active class to a specific li element. However, I am unsure of the standard method to accomplish this in a Laravel project.
I initially considered adding a JavaScript script to each page, but I realize that would not be the most efficient approach...
So, I am seeking advice from you all. Thank you!