I am struggling with trying to upgrade the Laravel version on a project. I am trying to put in the work to get to the current version but I've been stuck on this for days.
The production site started under 5.3, is running fine under 5.5.49 and has been for some time. However, each subsequent attempt at an upgrade breaks something or fails with some incompatibility between different packages and versions.
I use Forge and Digital Ocean VPS for production, I have a separate "staging" server there, and my local environment is Vagrant / VirtualBox / Homestead.
I have a running 5.8 branch but I am really leery of whether I have just managed to get it running through brute force and ignorance and there are inconsistencies or corruption in the install. I say that because trying to upgrade to 6.x has been completely unsuccessful.
When I change composer.json to "laravel/framework": "^6.0", remove my composer.lock file, and run composer update, I get an error that boils down to "laravelcollective/html[v5.8.0, ..., 5.8.x-dev] require illuminate/view 5.8" and "laravel/framework replaces illuminate/view and thus cannot coexist with it". So I remove the version on laravelcvollective/html, remove the composer.lock again, and rerun composer update.
I get "Upgrading laravelcollective/html (v5.8.1 => v6.2.1)" and a completed update.
I launch the site and get the welcome page. I can log in, but as soon as menus start to load I get errors like this "Missing required parameters for [Route: members.edit] [URI: members/{member}/edit]. (View: /resources/views/home.blade.php)"
Remembering that the site works fine under 5.8 here's the relevant line in home.blade.php
{!! link_to(URL::route('members.edit', ['id' => $user->id]), 'Edit Personal Info', ['id' => 'cancel-button', 'class' => 'btn btn-sm btn-info button150']) !!}
I've read through the upgrade notes and way down at the bottom there's a section titled Route URL Generation & Extra Parameters but I don't grasp anything there that points me at a solution.
I would appreciate any thoughts on two questions
What is my "Missing required parameters" error from and how can I correct it?
Is there something I'm missing in the upgrade process which would let me proceed more efficiently?
Thanks in advance