---
title: "Laravel Wow"
url: https://daily.dev/posts/laravel-wow-nuhgxuvq6
source_url: https://daily.dev/posts/laravel-wow-nuhgxuvq6
type: freeform
source: "Laravel Dev"
author: "Samrat Karki"
published: 2026-03-29T05:52:56.251Z
updated: 2026-03-29T05:53:18.880Z
tags: ["php", "laravel", "vscode"]
reading_time: 2
upvotes: 14
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Wow

**[Laravel Dev](https://daily.dev/sources/laraveldev)** · [@samratkarki](https://daily.dev/samratkarki) · 2 min read · 14 upvotes · 0 comments

## Summary

Two new features in the Laravel Wow VSCode extension: a PHP Class Organizer that automatically groups methods by visibility and sorts class members, and a Laravel File Generator that lets you run artisan make commands directly from VSCode without switching to the terminal. Covers keyboard shortcuts, configuration options, and a fix for a missing php-parser dependency.

## Content

# Laravel Wow : Two new features this week.

One keeps your class structure clean without thinking about it. One kills the terminal roundtrip for file generation.

---

## 01 · PHP Class Organizer

Classes drift. Methods end up wherever you happened to type them, visibility gets mixed, and eventually you need a map to find anything. The organizer fixes that with one shortcut.

| | |
|---|---|
| **Command** | `extension.organizePHPClass` |
| **Windows / Linux** | `Ctrl + Alt + F, F` |
| **Mac** | `Cmd + Alt + F, F` |

What it does:

- Groups methods by visibility (`public`, `protected`, `private`)
- Keeps traits, constants, and properties above methods
- Optionally sorts methods alphabetically
- Optionally moves static methods to the top
- Saves your preferences for future use

### Configure preferences

| | |
|---|---|
| **Command** | `extension.configurePHPOrganizer` |
| **Windows / Linux** | `Ctrl + Alt + F, S` |
| **Mac** | `Cmd + Alt + F, S` |

 <b> if you get

 <b> Unable to organize PHP class: Missing dependency "php-parser". Run npm install to use this command.<b>
 
Node.js installed

Check:

    node -v
    npm -v

If not installed:

    Linux (Ubuntu/Debian):
    sudo apt update
    sudo apt install nodejs npm
    
    macOS (best way via Homebrew):
    brew install node
    
    Windows:
    Download from the official Node.js website and install.

---

## 02 · Laravel File Generator

Switching to the terminal to run `php artisan make:*` breaks your focus. It's a small annoyance, but it happens constantly. This removes it.

| | |
|---|---|
| **Command** | `laravelBuilder.openGenerator` |
| **Windows / Linux** | `Ctrl + Shift + ,` |
| **Mac** | `Cmd + Shift + ,` |

From there you can generate:

- Controllers, Services, Repositories
- Jobs, Actions
- Requests, Resources
- Models, Middleware
- Events, Listeners
- Notifications, Mail
- Policies, Commands, Providers
- Observers
- Rules, Casts, Enums
- Traits, Interfaces
- Seeders, Factories, Migrations
- Config files

> **Shortcut conflict?** If a keybinding doesn't work, something else is probably mapped to it. Remap it in VSCode's keybindings editor — takes 30 seconds.

---

Try the features, find the bugs, tell us what broke. That's the loop that makes this better.
https://marketplace.visualstudio.com/items?itemName=snype.laravel-wow

## Similar posts on daily.dev

- [Run Artisan Make Commands in Laravel VS Code Extension](https://daily.dev/posts/run-artisan-make-commands-in-laravel-vs-code-extension-uwo8d0kfw) · Laravel News · 5 upvotes · 1 comments
- [PestPHP Intellisense in Laravel VS Code Extension v1.7.0](https://daily.dev/posts/pestphp-intellisense-in-laravel-vs-code-extension-v1-7-0-xut5cntoy) · Laravel News · 33 upvotes · 1 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/laravel-wow-nuhgxuvq6)
