Fix for problem after latest Laravel update