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 S…


This content originally appeared on DEV Community and was authored 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


This content originally appeared on DEV Community and was authored by C.S. Rhymes


Print Share Comment Cite Upload Translate Updates
APA

C.S. Rhymes | Sciencx (2021-07-02T18:00:07+00:00) Run Laravel artisan commands in PHP Storm. Retrieved from https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/

MLA
" » Run Laravel artisan commands in PHP Storm." C.S. Rhymes | Sciencx - Friday July 2, 2021, https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/
HARVARD
C.S. Rhymes | Sciencx Friday July 2, 2021 » Run Laravel artisan commands in PHP Storm., viewed ,<https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/>
VANCOUVER
C.S. Rhymes | Sciencx - » Run Laravel artisan commands in PHP Storm. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/
CHICAGO
" » Run Laravel artisan commands in PHP Storm." C.S. Rhymes | Sciencx - Accessed . https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/
IEEE
" » Run Laravel artisan commands in PHP Storm." C.S. Rhymes | Sciencx [Online]. Available: https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/. [Accessed: ]
rf:citation
» Run Laravel artisan commands in PHP Storm | C.S. Rhymes | Sciencx | https://www.scien.cx/2021/07/02/run-laravel-artisan-commands-in-php-storm/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.