Simple helper functions to be used in Laravel 4 applications