Right-click in the editor to show "Laravel: Run Artisan Command" in the context menu.
Selecting it opens a quick pick list of commonly used Artisan commands.
Choosing a command inserts it into the active terminal (or a new one if none exists). It is not run automatically — press Enter yourself to execute it.
For commands that require a name, such as make:controller or make:model, an input box appears afterward so you can enter the class name, etc.
Usage
Right-click in the editor.
Select "Laravel: Run Artisan Command" from the context menu.
Choose the Artisan command you want to run from the list.
Enter a name if required.
The command is inserted into the terminal. Press Enter to run it.
Included Commands (excerpt)
php artisan serve
php artisan migrate
php artisan migrate:fresh
php artisan make:controller
php artisan make:model
php artisan make:migration
php artisan make:component
php artisan route:list
php artisan config:clear
php artisan cache:clear
php artisan tinker
php artisan queue:work
php artisan key:generate
Many other frequently used commands are also included, such as make:seeder, make:factory, make:middleware, make:request, make:enum, make:observer, queue:retry, schedule:list, and vendor:publish.
Requirements
A Laravel project root must be open in VSCode.
PHP and Composer must be set up so Artisan commands can be run.
Notes
This extension simply inserts a command string into the terminal. It does not guarantee the outcome of running the command or the state of your PHP/Laravel environment.