Get "PHP 8 in a Nuthshell" (Now with PHP 8.4)
Amit Merchant

Amit Merchant

A blog on PHP, JavaScript, and more

A little known artisan command that can inspire you

While working on your codebase, be it developing features for your application or fixing bugs, we all tend to get a little bit demotivated sometimes in the middle of those sessions. Because after all, we are all humans and we all need some kind of inspiration every now and then.

If you tend to work with a Laravel codebase, there’s good news on this front. Laravel comes shipped with this little known artisan command (an easter egg?) that can “inspire” you… well, almost!

The artisan inspire command

Yes, the artisan inspire command, as its name suggests, can present you with a motivational/inspirational quote from famous personalities every time you run it.

$ php artisan inspire

Below is a screenshot of my terminal when I ran this command a couple of times.

A much-needed inspiration right in your terminal! Yes, I like it!

Learn the fundamentals of PHP 8 (including 8.1, 8.2, 8.3, and 8.4), the latest version of PHP, and how to use it today with my new book PHP 8 in a Nutshell. It's a no-fluff and easy-to-digest guide to the latest features and nitty-gritty details of PHP 8. So, if you're looking for a quick and easy way to PHP 8, this is the book for you.

Like this article?

Buy me a coffee

👋 Hi there! I'm Amit. I write articles about all things web development. You can become a sponsor on my blog to help me continue my writing journey and get your brand in front of thousands of eyes.

Comments?