Illuminate/Support not loaded while trying to install nunomaduro/larastan
Hello there friends.
As part of following the Pet Clinic project and learn the filament admin inside out I decided to start fresh (I've joined later than the first class the livestream) so I've just created a new petclinic.lar project locally and it is all set, but when I attempt to follow up with the video and install larastan, I got a weird error using the composer command: composer require nunomaduro/larastan:^2.0 --dev:
Does anyone has an idea what might be wrong as it is a brand new project using PHP 8.1, any other packages were correctly installed and project ready to go, just that I would like to see what larastan does as well and seems to have an issue with that...
I've read in StackOver that I should check my composer.json and remove any Illuminate\Support if there and do a composer update, but that did not help much and I did not even had that line.
As part of following the Pet Clinic project and learn the filament admin inside out I decided to start fresh (I've joined later than the first class the livestream) so I've just created a new petclinic.lar project locally and it is all set, but when I attempt to follow up with the video and install larastan, I got a weird error using the composer command: composer require nunomaduro/larastan:^2.0 --dev:
Does anyone has an idea what might be wrong as it is a brand new project using PHP 8.1, any other packages were correctly installed and project ready to go, just that I would like to see what larastan does as well and seems to have an issue with that...
I've read in StackOver that I should check my composer.json and remove any Illuminate\Support if there and do a composer update, but that did not help much and I did not even had that line.
Solution
Here is the final result, seems like the .neon file got accepted perfectly and tests passed with flying colors:

