Create Laravel File easily for Visual Studio Code
March 15, 2025 ยท View on GitHub
Create Laravel File easily for Visual Studio Code
A Visual Studio Code extension for creating various PHP/Laravel files from context menu in file explorer or in opened file.
This has been inspired from one of the features from a popular PHPStorm plugin, Laravel Idea, and another VSCode Extension, PHP Create Class.
Supported Files
The following files are supported:
- PHP Class
- PHP Enum
- PHP Interface
- PHP Trait
- Blade File
- Blade Component Class
- Config
- Console Command
- Controller (Single Action)
- Controller (Resource)
- Event
- Event Listener
- Exception
- Factory
- Form Request
- Job
- JSON Resource
- JSON Resource Collection
- Mailable
- Migration
- Model
- Notification
- PEST Test
- Policy
- Rule
- Seeder
The namespace is auto-resolved through composer.json file.
Creating Model

Creating Single Action Controller

Creating Resource Controller

Settings
You can select which file will appear in the context menu.
