What has been done to fix this issue:
- composer, npm updated. --> didn't solved
- new wamp server installed and tried. --> didn't solved
- php version 7.4.9, since running artisan serve command on another laravel project, it is running fine without this issue.
- config, cache, cookies all cleared and ok.
- Also since after this issue when click on Login, it says LoginController not found but it there where it was.
- No major changes on the code level.
Issue occurred all of sudden on running project.