Add compatibility to Laravel 4.2