First off, thank you Nathan Long at StackExchange for saving my app. Here’s the link to his sage answer:
This is the typo that broke my code:
php artisan app:name foo.bar
Here foo.bar is just pseudocode for a very specific label that I was applying to the app namespace. However, I carelessly added the top level domain of the Website the app was on. Namespace don’t like punctuation. So artisan recursively renamed every occurrence of
etc. Bash to the rescue.
To change it back, I did the following from CLI, slightly modifying the StackExchange code:
find . -type f -name "*.*" -print0 | xargs -0 sed -i '' -e 's/foo.bar/App/g'
I was able to do this because foo.bar in this case was a very unique label. If I chose a more generic term, this could unleash utter destruction. Back your work up, folks!