php artisan dump-autoload code example Example 1: php artisan autoload:dump composer dump-autoload Example 2: generate autodump laravel $ composer dump-autoload