DEV Community

Cover image for LaraPurse - Laravel extension for VS Code
Jonthan Krah
Jonthan Krah

Posted on

LaraPurse - Laravel extension for VS Code

LaraPurse is a VS Code extension designed to make Laravel development faster and more efficient by automating the creation of key Laravel components. With just one click, developers can generate controllers, models, migrations, and Blade templates, saving valuable time and effort.

🔹 Key Features & How It Works

1️⃣ One-Click Controller Creation
Instead of manually running php artisan make:controller, LaraPurse allows you to create resource controllers with a single click. You can specify multiple controller names at once, making it easy to set up an entire feature in seconds.

2️⃣ Auto-Generates Models & Migrations
When creating a controller, you can also choose to generate a corresponding Eloquent model and database migration file automatically. No need to manually run extra commands—LaraPurse takes care of it for you!

3️⃣ Automatically Adds Routes to web.php
Once a controller is created, LaraPurse updates your web.php file by:
✔️ Adding use statements for the controllers
✔️ Generating Route::resource() entries based on the controller names
✔️ Preventing duplicate route declarations

4️⃣ Generates Blade Views for CRUD Operations
Need views for your controllers? LaraPurse can generate basic Blade templates (index, create, edit, and show) inside your Laravel project. This helps speed up UI development for CRUD operations.

5️⃣ Integrated Activity Bar Icon for Quick Access
LaraPurse includes a dedicated icon in VS Code’s activity bar. Clicking on this icon immediately triggers the controller creation process—without opening an extra panel—allowing for a seamless, distraction-free experience.

EXTENSION LINK: https://marketplace.visualstudio.com/items?itemName=JonathanKrah.larapurse

VIDEO:
https://www.youtube.com/watch?v=PGCgk4MtFO8&feature=youtu.be

🎯 Why Use LaraPurse?
✅ Boosts productivity by reducing repetitive tasks
✅ Ensures consistency in project structure
✅ Saves time by automating Laravel command execution
✅ Perfect for beginners learning Laravel structure
✅ Great for experienced developers looking to speed up workflow

If you frequently create Laravel projects and want a faster, more convenient way to generate controllers, models, and views, LaraPurse is the perfect tool for you! 🚀

Top comments (0)