How to add custom functions in Laravel