Laravel 5 compatibility