Hi,
Can anyone suggest how to solve the problem below, it appears after upgrading to laravel 12 from 11, on the application page and also when running any command in terminal.
composer dump-autoload not helping.
Warning: require(/Users/dos/Desktop/code/ship/vendor/composer/../laravel/framework/src/Illuminate/Collections/functions.php): Failed to open stream: No such file or directory in /Users/dos/Desktop/code/ship/vendor/composer/autoload_real.php on line 39
Fatal error: Uncaught Error: Failed opening required '/Users/dos/Desktop/code/ship/vendor/composer/../laravel/framework/src/Illuminate/Collections/functions.php' (include_path='.:') in /Users/dos/Desktop/code/ship/vendor/composer/autoload_real.php:39 Stack trace: #0 /Users/dos/Desktop/code/ship/vendor/composer/autoload_real.php(43): {closure}('476ca15b8d69b04...', '/Users/dos/Desk...') #1 /Users/dos/Desktop/code/ship/vendor/autoload.php(25): ComposerAutoloaderInitecee385275a32a93bf8d0d688f5cbd04::getLoader() #2 /Users/dos/Desktop/code/ship/public/index.php(13): require('/Users/dos/Desk...') #3 /Applications/Herd.app/Contents/Resources/valet/server.php(167): require('/Users/dos/Desk...') #4 {main} thrown in /Users/dos/Desktop/code/ship/vendor/composer/autoload_real.php on line 39
Hi, check if functions.php exists in your /Users/dos/Desktop/code/ship/vendor/laravel/framework/src/Illuminate/Collections directory. It is part of the framework and if it has been accidentally deleted it is causing your application to crash
@kggeorgiev You are right, the src folder in the /vendor/laravel/framework/ directory is missing at all. Can you please advise me how I can reinstall laravel 12 if running any composer command returns an error?