laravel comparibility fix