Closed bwong789 closed 8 months ago
What do you mean "name of the current page"? The <title>
element? The URL? Something else?
You can obtain a Route
object from the current request using Validator::attributes($request)->route()
.
If you want something else, please ask again with more details
Is there a way for a PHP function to obtain the name of the current page?