Habari\URL::ajax PHP Method

ajax() public static method

Helper method for ajax rule
public static ajax ( string $context, array | string | object $args = [] ) : string
$context string The context of the ajax rule
$args array | string | object The arguments to pass to the rule's builder
return string The resultant URL
    public static function ajax($context, $args = array())
    {
        $args['context'] = $context;
        return URL::get('ajax', $args);
    }