Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.78 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.78 KB

Create PHP Class

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
  • Form Request
  • Job
  • JSON Resource
  • JSON Resource Collection
  • Mailable
  • Migration
  • Model
  • Notification
  • PEST Test
  • Policy
  • Rule

The namespace is auto-resolved through composer.json file.

Creating Model

CreateModel

Creating Single Action Controller

CreateSingleActionController

Creating Resource Controller

CreatingResourceController

Settings

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

Setting