Improves compatibility with Laravel