Update Laravel and adapt custom code