independent full stack developer

/ Developer's blog

If class not found, or file not exists on Laravel

Friday, July 01, 2022

Sometimes, especially after refactoring, you can get the error that some of Controllers or Models can't be found. There is a life hack:

composer dump-autoload

This command will regenerate autoload_classmap.php and everything will work properly.

1191 people already saw it