Laravel 4 compatibility