Helper methods from Laravel 4 Framework