Allow for laravel 5.x compatibility.