I am new to laravel 11. and I am getting error "Target class does not exist" while I cloned project from git. Same project in another folder is working fine. Can anyone suggest what could be the reason? The only difference I can find is while doing composer dump-autoload the working project is showing "Generated optimized autoload files containing 6775 classes" while other is showing "Generated optimized autoload files containing 6773 classes".. Thanks in advance...


artisan package:discovermight be to blame? The screenshots you've shared don't show any obvious problems either (they don't even contain the error message)