PHPackages                             azizizaidi/laravel-all-in-one-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. azizizaidi/laravel-all-in-one-command

ActiveLaravel-package[Admin Panels](/categories/admin)

azizizaidi/laravel-all-in-one-command
=====================================

A Laravel package to generate all necessary files for a feature with a single command.

v1.0.2(11mo ago)02MITPHPPHP ^8.1

Since Jun 1Pushed 11mo agoCompare

[ Source](https://github.com/azizizaidi/laravel-all-in-one-command)[ Packagist](https://packagist.org/packages/azizizaidi/laravel-all-in-one-command)[ Docs](https://github.com/azizizaidi/laravel-all-in-one-command)[ RSS](/packages/azizizaidi-laravel-all-in-one-command/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Laravel All-in-One Command
==========================

[](#laravel-all-in-one-command)

[![Latest Version on Packagist](https://camo.githubusercontent.com/64ca1bdbc2c063ef315802a127594296bce964936d5e3defb2dc06fdbb25ce46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617a697a697a616964692f6c61726176656c2d616c6c2d696e2d6f6e652d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/azizizaidi/laravel-all-in-one-command)[![Total Downloads](https://camo.githubusercontent.com/fd23f9f00610fc09a6b730b57526803799dc9e49a0e33d03a515ba682830865b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617a697a697a616964692f6c61726176656c2d616c6c2d696e2d6f6e652d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/azizizaidi/laravel-all-in-one-command)

A Laravel package that generates all necessary files for a feature with a single command. This package helps you quickly scaffold complete CRUD functionality including models, migrations, controllers, form requests, services, tests, policies, routes, and views.

Features
--------

[](#features)

- 🚀 **One Command, Complete Feature**: Generate all related files with a single artisan command
- 🎯 **Interactive Setup**: Choose exactly what you need through interactive prompts
- 📁 **Smart Organization**: Automatically organizes files with proper namespacing
- 🔧 **Customizable**: Supports custom namespaces and directory structures
- 🧪 **Test Ready**: Generates both unit and feature tests
- 🛡️ **Security First**: Includes form requests and policies
- 🎨 **View Templates**: Basic Blade templates for quick prototyping

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require azizizaidi/laravel-all-in-one-command --dev
```

The package will automatically register itself via Laravel's package discovery.

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

Generate a complete feature with the interactive command:

```
php artisan make:feature Order
```

This will prompt you to choose which components to generate:

- Model
- Migration
- Factory
- Seeder
- Controller (Resource/Invokable/Basic)
- Form Requests (Store/Update)
- Service Class with optional Interface
- Web Routes
- API Routes
- Tests (Unit/Feature)
- Policy
- Scheduled Task Command
- Blade Views (CRUD)

### Example Output

[](#example-output)

When you run `php artisan make:feature Order`, the command will generate:

```
app/Models/Order.php
database/migrations/2024_01_01_000000_create_orders_table.php
database/factories/OrderFactory.php
database/seeders/OrderSeeder.php
app/Http/Controllers/OrderController.php
app/Http/Requests/StoreOrderRequest.php
app/Http/Requests/UpdateOrderRequest.php
app/Services/OrderService.php
app/Services/Contracts/OrderServiceInterface.php
app/Policies/OrderPolicy.php
tests/Unit/OrderTest.php
tests/Feature/OrderTest.php
resources/views/orders/index.blade.php
resources/views/orders/create.blade.php
resources/views/orders/edit.blade.php
resources/views/orders/show.blade.php

```

### Advanced Usage

[](#advanced-usage)

#### Custom Namespaces

[](#custom-namespaces)

You can specify custom controller namespaces:

```
php artisan make:feature Shop/Product
```

This will create controllers in `App\Http\Controllers\Shop\` namespace.

#### What Gets Generated

[](#what-gets-generated)

**Models**: Basic Eloquent model with HasFactory trait **Migrations**: Standard Laravel migration with proper table naming **Controllers**: Resource, Invokable, or Basic controllers with proper model binding **Form Requests**: Store and Update request classes with basic validation structure **Services**: Service classes with optional interfaces and automatic binding **Tests**: PHPUnit test classes with basic test structure **Policies**: Model policies with standard CRUD methods **Views**: Basic Blade templates with Bootstrap-friendly markup **Routes**: Automatic route registration in web.php and/or api.php

Configuration
-------------

[](#configuration)

The package works out of the box with sensible defaults, but you can customize:

- Controller namespaces
- Service organization
- Route paths
- View directories

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.0, 11.0, or 12.0

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Azizi Zaidi](https://github.com/azizizaidi)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance51

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad05296c4e1f2a7014a14752dde7c949976c84b05c397225ae17bb6e584c15e9?d=identicon)[azizizaidi](/maintainers/azizizaidi)

---

Top Contributors

[![azizizaidi](https://avatars.githubusercontent.com/u/17944716?v=4)](https://github.com/azizizaidi "azizizaidi (4 commits)")

---

Tags

laravelpackagegeneratorscaffoldartisancrudcommand

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/azizizaidi-laravel-all-in-one-command/health.svg)

```
[![Health](https://phpackages.com/badges/azizizaidi-laravel-all-in-one-command/health.svg)](https://phpackages.com/packages/azizizaidi-laravel-all-in-one-command)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
