Fixed code for Laravel updates