How to Enable Auto-Complete for Custom Path Functions in PHPStorm?

How can I enable auto-complete in PHPStorm for a function that takes a string input, where the string represents a file path?

For example, with JavaScript, I define a function like this:

function asset(path: string) {
    return `/public/static/${path}`;
};

The goal is to have the path values auto-completed as I type. How can this be achieved?

For instance, in Laravel, we have auto-completion like this:
Screenshot from php storm auto complete for asset helper function

Can we achieve the same for custom functions?