Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Laravel CommandsNew to Visual Studio Code? Get it now.
Laravel Commands

Laravel Commands

Takashi Hishiki

|
3 installs
| (0) | Free
Run Laravel Artisan commands from the editor's right-click menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laravel Commands

A VSCode extension that lets you pick a Laravel Artisan command from the editor's right-click menu and inserts it into the terminal.

Extension Marketplace

Features

  • 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

  1. Right-click in the editor.
  2. Select "Laravel: Run Artisan Command" from the context menu.
  3. Choose the Artisan command you want to run from the list.
  4. Enter a name if required.
  5. 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.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft