I just updated from laravel 6.* to 7.
Update laravel first, not framework, but laravel see https://laracasts.com/discuss/channels/guides/update-upgrade-laravel-then-framework
Then run composer update, let it error:
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
InvalidArgumentException
Attribute [auth] does not exist.
at C:\Bitnami\wampstack-7.4.0-0\apache2\laravel60up\vendor\laravel\framework\src\Illuminate\Routing\RouteRegistrar.php:92
88| */
89| public function attribute($key, $value)
90| {
91| if (! in_array($key, $this->allowedAttributes)) {
> 92| throw new InvalidArgumentException("Attribute [{$key}] does not exist.");
93| }
94|
95| $this->attributes[Arr::get($this->aliases, $key, $key)] = $value;
96|
1 C:\Bitnami\wampstack-7.4.0-0\apache2\laravel60up\vendor\laravel\framework\src\Illuminate\Routing\Router.php:1236
Illuminate\Routing\RouteRegistrar::attribute()
2 C:\Bitnami\wampstack-7.4.0-0\apache2\laravel60up\vendor\laravel\framework\src\Illuminate\Support\Facades\Auth.php:52
Illuminate\Routing\Router::__call()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Then run:
composer require laravel/ui "^2.0"
Zero problems.
After running:
composer require laravel/ui "^2.0"
All is fine. But make sure you use the composer.json from laravel 7.0. https://github.com/laravel/laravel/releases
v7.0.0
Also see https://laracasts.com/discuss/channels/laravel/updated-from-6-to-70