Update web.php

Updated the web slug function to include a 'format' option. Ideally this should be formatted to a new 'function' entirely. But this was a simpler solution.