1FIRST METHOD :
2===============
3# uninstall the package
4composer global remove laravel/installer
5
6# reinstall
7composer global require laravel/installer
8
9SECOND METHOD :
10================
11
12Just upgraded from Laravel 7 to 8, and running
13 composer global require "laravel/installer:^4.0"
14
15did the trick for me (i.e., without removeing first)
1use App\Models\Flight;
2
3$flight = Flight::find(1);
4
5$flight->name = 'Paris to London';
6
7$flight->save();
1$flight = App\Models\Flight::find(1);
2
3$flight->name = 'New Flight Name';
4
5$flight->save();