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