Fix for Laravel bug #2548