How a typo can break Laravel, and how bash can fix it

First off, thank you Nathan Long at StackExchange for saving my app.  Here’s the link to his sage answer:

https://superuser.com/questions/428493/how-can-i-do-a-recursive-find-and-replace-from-the-command-line

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
use App\
and
namespace App
with
use foo.bar
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!