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