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

Why did I become a writer?
Why did I become a writer?

There has been a lot of discussion on Threads recently about becoming a writer, but don’t give up your day job. I have seen a lot of arguments from all sides, some people saying they became a successful full time writer, others saying they would never give up their job, then there are others who became writers full time then went back to another job. Writing has always been a hobby for me, but this discussion has made me think more about why I write.

Adding social icons to the Bulma Clean Theme footer
Adding social icons to the Bulma Clean Theme footer

Version 1.1.0 of Bulma clean theme has been released. It has a small update that allows you to easily add social media links to the footer of your site.

The Little-Astwick Mysteries (book 2) - Grave concern at the Manor
How NOT to make a website

How NOT to make a Website

By C.S. Rhymes

From £5.49 or read for free on Kindle Unlimited!

Nigel's Intranet Adventure

Nigel's Intranet Adventure

By C.S. Rhymes

From £3.99 or read for free on Kindle Unlimited!