DEV Community

Cover image for Run Laravel artisan commands in PHP Storm
C.S. Rhymes
C.S. Rhymes

Posted on • Originally published at csrhymes.com on

4 1

Run Laravel artisan commands in PHP Storm

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

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (1)

Collapse
 
eboye profile image
eboye

Amazing, thanks!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay