Add functions for laravel upgrade.