Fixing AppNameCommand.php "file not found" issue

Following on from PR #6167 (and incorporating tplaner's changes), this file allows me to complete an app:name command. ArtisanServiceProvider was removed in laravel/laravel:9aed9de