Core Module

On route

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>


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.

Mobile Analytics