We use cookies on this site to enhance your user experience

By clicking the Accept button, you agree to us doing so. More info on our cookie policy

Run Laravel artisan commands in PHP Storm

Published: Jul 2, 2021 by C.S. Rhymes

PHP Storm has a built in terminal window which you can use to run Laravel artisan commands, but there is a quick configuration change that you can do to make it even easier to run artisan commands.

  • Open Preferences > Tools > Command Line Tool Support
  • Click the plus icon
  • Select Laravel from the Choose tools dropdown and press OK

Command line tools

  • Set an alias, I’ve used artisan in this example
  • Choose your PHP Interpreter or use the default project interpreter
  • Set the Path to script as the location of your Laravel app’s artisan file
  • Press OK

Tool Settings

  • Press control twice to open Run Anything
  • Type the alias you entered, artisan in my example, and a list of artisan commands will appear, along with the available options.
  • The list of available commands will filter down as you type
  • Enter the command and press enter and it will run the command for you in the PHP Storm terminal

Run Anywhere

For more information, take a look at the PHP Storm docs website

Photo by Ghost Presenter on StockSnap

PHP Laravel Artisan

Latest Posts

Five book blurb writing observations
Five book blurb writing observations

Amazon KDP gives you a basic text editor for your book’s blurb, but here are five observations that I have made from researching other books. All of the examples are taken from Mystery books in the Amazon UK store.

Creating a Kindle formatted book from Google Docs
Creating a Kindle formatted book from Google Docs

I have seen a few posts on Threads recently asking what software people use to format their books. This is one option out of many, but I thought I would share my current workflow to give authors an insight into the pros and cons.

Hosting a Laravel app with AWS Beanstalk
Hosting a Laravel app with AWS Beanstalk

There are lots of possible hosting solutions available for Laravel, from Forge, to Vapor to the new Laravel Cloud. I’ll start out by saying that these other solutions are much easier to get up and running than beanstalk, but I thought I’d share some of the “fun” I had getting it up and running.

How NOT to make a website

Unlooked for Tales - a collection of short stories

By C.S. Rhymes

Free on Apple Books and Google Play Books

Nigel's Intranet Adventure

Nigel's Intranet Adventure

By C.S. Rhymes

From £0.99 or read for free on Kindle Unlimited!