Porting my CodeIgniter helpers to Laravel 3.