I'm installing a new Laravel 5.6 ambient with composer, but every time i do a "Laravel new projectName", when i run composer install or composer update, it returns this error:
Could not scan for classes inside "path/to/vendor/hamcrest/hamcrest-php/hamcrest" which does not appear to be a file nor a folder
After hours of trying to fix it, I made a test, manually creating the hamcrest folder. When i ran composer install again, it pointed that composer couldn't read a file in the "psysh" library, when i went to check it, the folder was completely empty. I downloaded the files again and put them in the folder, just to test if it was going to run. After doing that and running composer install, this error popped out
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover
In ProviderRepository.php line 208: Class 'Laravel\Tinker\TinkerServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
I don't know where i messed up, since this is a fresh install of composer + laravel. I ran composer diagnose, but everything is ok. Does anyone where is my error?