Make compatible with Laravel 5