PhpStorm Startup task - php artisan serve

前端 未结 2 1741
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 18:46

I am working with a project locally and I want to run \"php artisan serve\" with the PhpStorm\'s startup task feature every time I start the project.

I went to

相关标签:
2条回答
  • 2020-12-11 19:20

    Artisan is a php script so you can simply add a new PHP Script task:

    File: Browse to you project directory and select artisan.

    Arguments: serve

    If your php interpreter is setup correctly in your PHPStorm settings, then you will be able run this task and it will automatically run at startup.

    0 讨论(0)
  • 2020-12-11 19:33

    Where do I add this PHP task? – Brad

    phpstorm 2017.2

    File -> Settings... -> Tools -> Startup Tasks -> +(Add) -> PHP Script

    Name: serve

    Single instance only - checked

    File: path/to/artisan

    Arguments: serve

    0 讨论(0)
提交回复
热议问题