Core Module
The on_route()
helper function is pretty straightforward, it allows you to quickly check if the user is on the given route. This is usually used for setting active classes on a menu.
Example usage:
<li class="{{ on_route('user.account') ? 'active' : '' }}">
<a href="{{ route('user.account') }}">Account</a>
</li>
The locale()
helper function is used to get the current active locale on the application.
An optional argument can be given to set the application locale.
The is_module_enabled($moduleName)
functions returns true
if the given module name is enabled or false
if not.