Ensure compatibility with higher laravel

 eloquent versions.