PHPackages                             rahasistiyak/laravel-super-artisan - 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. [API Development](/categories/api)
4. /
5. rahasistiyak/laravel-super-artisan

ActiveLibrary[API Development](/categories/api)

rahasistiyak/laravel-super-artisan
==================================

A powerful Laravel scaffolding package — generate Models, Controllers, Repositories, APIs, Filament resources, Policies, Actions, and more with a single command. Includes a complete Workflow runner for Artisan command sequences.

2.0.0(1mo ago)58MITPHPPHP &gt;=8.2

Since Jun 26Pushed 1mo agoCompare

[ Source](https://github.com/rahasistiyakofficial/laravel-super-artisan)[ Packagist](https://packagist.org/packages/rahasistiyak/laravel-super-artisan)[ Docs](https://github.com/rahasistiyakofficial/laravel-super-artisan)[ RSS](/packages/rahasistiyak-laravel-super-artisan/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Super Artisan for Laravel — v2.0
================================

[](#super-artisan-for-laravel--v20)

 **The ultimate Laravel scaffolding &amp; workflow package.**
 Generate complete resource stacks, run Artisan workflows, and supercharge your development speed.

 [![Latest Version](https://camo.githubusercontent.com/e18000463df03bd4873fd7a7fb39896c7f8827f44bc58357c198857074856cd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616861736973746979616b2f6c61726176656c2d73757065722d6172746973616e2e737667)](https://packagist.org/packages/rahasistiyak/laravel-super-artisan) [![PHP Version](https://camo.githubusercontent.com/e7cdd3588d6eaffb46420380992e0a4e55c602250c78ee5769efb92c9cd6b27c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72616861736973746979616b2f6c61726176656c2d73757065722d6172746973616e2e737667)](https://packagist.org/packages/rahasistiyak/laravel-super-artisan) [![License](https://camo.githubusercontent.com/a58d6a03c74a95ba763fe036734f06c634af8fa4a0b4651420a90a26b4db9b72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616861736973746979616b2f6c61726176656c2d73757065722d6172746973616e2e737667)](https://packagist.org/packages/rahasistiyak/laravel-super-artisan)

---

What's New in v2.0
------------------

[](#whats-new-in-v20)

Featurev1v2`run:workflow` command❌ Missing✅ Fully implementedRepository pattern (full triad)⚠️ Partial✅ Class + Interface + ProviderBulk generation❌✅ `make:super Post,Comment,Tag`API scaffolding❌✅ `--api`Filament resource❌✅ `--filament`Domain-driven layout❌✅ `--domain=Blog`Blueprint system⚠️ Config only✅ Fully executable`--force` / `--dry-run`❌✅ Both supported`make:super-request`❌✅ New command`make:super-policy`❌✅ New command`make:super-action`❌✅ New command`super:list`❌✅ New DX helperPHP &amp; Laravel supportPHP 8.0+, L11-12PHP 8.2+, L11-12-13---

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

[](#requirements)

- **PHP** &gt;= 8.2
- **Laravel** 11.x, 12.x, or 13.x

---

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

[](#installation)

```
composer require rahasistiyak/laravel-super-artisan
```

Publish the config and stubs:

```
# Publish config (optional but recommended)
php artisan vendor:publish --tag=super-artisan-config

# Publish stubs (to customize templates)
php artisan vendor:publish --tag=super-artisan-stubs
```

This creates:

- `config/super-artisan.php` — Define your blueprints and workflows.
- `stubs/vendor/super-artisan/` — Customize every generated file template.

---

Available Commands
------------------

[](#available-commands)

CommandDescription`make:super {name}`Generate a complete resource stack`make:repository {name}`Generate a repository (class + interface + provider)`make:service {name}`Generate a service class`make:super-request {name}`Generate a FormRequest`make:super-policy {name}`Generate a Gate policy`make:super-action {name}`Generate a single-responsibility Action`run:workflow {name}`Execute a predefined Artisan command workflow`super:list`List all available workflows and blueprints---

`make:super` — Resource Generator
---------------------------------

[](#makesuper--resource-generator)

### Signature

[](#signature)

```
php artisan make:super {name} [options]
```

### Options

[](#options)

OptionDescription`{name}`Resource name(s). Comma-separate for bulk: `Post,Comment,Tag``--livewire`Generate a Livewire component`--vue`Generate a Vue 3 component`--react`Generate a React component`--api`Generate an API resource controller (JSON responses)`--filament`Generate a Filament v3 resource`--pattern=repository`Apply the Repository pattern (class + interface + binding)`--pattern=service`Apply the Service pattern`--blueprint={key}`Run a named blueprint from config`--domain={Name}`Place files under a domain namespace`--path={path}`Base path for controllers and views`--controller_path={path}`Controller subfolder`--model_path={path}`Model subfolder`--view_path={path}`View/component subfolder`--migration_path={path}`Migration subfolder`--force`Overwrite existing files`--dry-run`Preview what would be generated without writing`--interactive`Prompt for options interactively### Examples

[](#examples)

#### Basic CRUD (Blade Views)

[](#basic-crud-blade-views)

```
php artisan make:super Post
```

Generates: Model, Migration, Factory, Controller, 4 Blade views

#### Bulk Generation

[](#bulk-generation)

```
php artisan make:super Post,Comment,Tag
```

Generates the full stack for all three resources at once.

#### API Resource

[](#api-resource)

```
php artisan make:super Post --api
```

Generates: Model, Migration, Factory, API Controller (JSON responses, no views)

#### Repository Pattern

[](#repository-pattern)

```
php artisan make:super Post --pattern=repository
```

Generates: Model + Migration + Repository class + Interface + `RepositoryServiceProvider` binding + Controller with DI

#### Filament Resource

[](#filament-resource)

```
php artisan make:super Post --filament
```

Generates: Model + Migration + Filament v3 Resource (requires `filament/filament`)

#### Domain-Driven Layout

[](#domain-driven-layout)

```
php artisan make:super Post --domain=Blog
```

Generates: `app/Http/Controllers/Blog/PostController.php`, views in `resources/views/Blog/post/`

#### Livewire

[](#livewire)

```
php artisan make:super Post --livewire
```

#### Vue / React

[](#vue--react)

```
php artisan make:super Post --vue
php artisan make:super Post --react
```

#### Blueprint

[](#blueprint)

```
php artisan make:super Post --blueprint=full-stack
```

Runs the `full-stack` blueprint: Model + Repository + Policy + FormRequests + Controller.

#### Dry Run

[](#dry-run)

```
php artisan make:super Post --api --domain=Blog --dry-run
```

Preview exactly what would be created — nothing is written to disk.

#### Force Overwrite

[](#force-overwrite)

```
php artisan make:super Post --force
```

---

`run:workflow` — Workflow Runner
--------------------------------

[](#runworkflow--workflow-runner)

Execute predefined sequences of Artisan commands.

### Signature

[](#signature-1)

```
php artisan run:workflow {workflow} [options]
```

### Options

[](#options-1)

OptionDescription`--name={value}`Substitute `{name}` token in workflow commands`--dry-run`Show the commands without running them`--stop-on-failure`Stop the workflow if any step fails`--list`List all available workflows### Built-in Workflows

[](#built-in-workflows)

WorkflowDescription`deploy`Clear caches, run migrations, rebuild caches, take app back up`fresh`Wipe and re-seed the database (dev only)`optimize`Rebuild all application caches`clear`Clear all caches`test`Run the test suite`test-and-deploy`Run tests then deploy (use `--stop-on-failure`)`queue-restart`Gracefully restart queue workers`ide-helper`Regenerate IDE helper files### Examples

[](#examples-1)

```
# Standard deployment
php artisan run:workflow deploy

# Preview what deploy would do
php artisan run:workflow deploy --dry-run

# Test then deploy, stop if tests fail
php artisan run:workflow test-and-deploy --stop-on-failure

# Fresh database for local dev
php artisan run:workflow fresh

# List all workflows
php artisan run:workflow deploy --list
# or
php artisan super:list
```

---

`make:repository` — Repository Generator
----------------------------------------

[](#makerepository--repository-generator)

Generates the full repository triad:

1. **Repository class** (`app/Repositories/{Name}Repository.php`)
2. **Interface** (`app/Repositories/Contracts/{Name}RepositoryInterface.php`)
3. **Service Provider binding** (`app/Providers/RepositoryServiceProvider.php`)

```
php artisan make:repository PostRepository --model=Post
```

### Options

[](#options-2)

OptionDescription`--model=`Model to use (auto-inferred from name if omitted)`--no-interface`Skip generating the interface`--no-binding`Skip updating RepositoryServiceProvider`--force`Overwrite existing files`--dry-run`Preview output> **After generation**: Add `RepositoryServiceProvider::class` to `bootstrap/providers.php` (Laravel 11+).

---

`make:service` — Service Generator
----------------------------------

[](#makeservice--service-generator)

```
php artisan make:service PostService --model=Post
```

Generates: `app/Services/PostService.php` with typed methods and constructor injection.

---

Additional Generators
---------------------

[](#additional-generators)

### `make:super-request`

[](#makesuper-request)

```
php artisan make:super-request StorePostRequest --rules=title:required,body:required|max:500
```

Generates: `app/Http/Requests/StorePostRequest.php` with pre-filled validation rules.

### `make:super-policy`

[](#makesuper-policy)

```
php artisan make:super-policy PostPolicy --model=Post
```

Generates: `app/Policies/PostPolicy.php` with all standard Gate methods (viewAny, view, create, update, delete, restore, forceDelete).

### `make:super-action`

[](#makesuper-action)

```
php artisan make:super-action CreatePost --model=Post
```

Generates: `app/Actions/CreatePost.php` — a single-responsibility action class.

---

`super:list` — Discovery Helper
-------------------------------

[](#superlist--discovery-helper)

```
# List all workflows
php artisan super:list

# List all blueprints
php artisan super:list --blueprints

# List everything
php artisan super:list --all
```

---

Blueprints
----------

[](#blueprints)

Blueprints define reusable file-generation templates. Define your own in `config/super-artisan.php`.

### Built-in Blueprints

[](#built-in-blueprints)

BlueprintDescription`crud`Model + Migration + Factory + Resource Controller`api-resource`Model + Migration + Factory + API Controller`repository-crud`Full CRUD with Repository pattern`livewire`Model + Migration + Livewire component`filament-resource`Model + Migration + Filament resource`full-stack`Model + Repository + Policy + FormRequests + Controller### Custom Blueprint Example

[](#custom-blueprint-example)

```
// config/super-artisan.php
'blueprints' => [
    'my-api' => [
        'description' => 'My custom API resource.',
        'commands' => [
            'make:model {name} -m -f',
            'make:super-request Store{name}Request',
            'make:super-request Update{name}Request',
            'make:super {name} --api',
        ],
    ],
],
```

```
php artisan make:super Product --blueprint=my-api
```

---

Custom Workflows
----------------

[](#custom-workflows)

```
// config/super-artisan.php
'workflows' => [
    'my-deploy' => [
        'description' => 'My custom deployment steps.',
        'commands' => [
            'down',
            'migrate --force',
            'db:seed --class=ProductionSeeder',
            'optimize',
            'up',
        ],
    ],
],
```

```
php artisan run:workflow my-deploy --stop-on-failure
```

---

Customizing Stubs
-----------------

[](#customizing-stubs)

After publishing, edit stubs in `stubs/vendor/super-artisan/`:

StubPurpose`view_index.stub`Blade index view`view_create.stub`Blade create view`view_edit.stub`Blade edit view`view_show.stub`Blade show/detail view`vue_component.stub`Vue 3 SFC component`react_component.stub`React functional component`repository.stub`Repository class`repository_interface.stub`Repository interface`repository_controller.stub`Controller with repository DI`api_controller.stub`API resource controller`service.stub`Service class`action.stub`Action class`policy.stub`Gate policy`request.stub`FormRequest`filament_resource.stub`Filament v3 Resource### Available Tokens

[](#available-tokens)

TokenExample Output`{{ name }}``Post``{{ lower_name }}``post``{{ plural }}``Posts``{{ lower_plural }}``posts``{{ snake_name }}``post``{{ snake_plural }}``posts``{{ kebab_name }}``post``{{ ns_prefix }}``\Admin` (or empty)---

Repository Pattern — How It Works
---------------------------------

[](#repository-pattern--how-it-works)

When using `--pattern=repository` or `make:repository`, the package generates:

1. **Repository class** — Implements `RepositoryInterface` from the package with `all()`, `find()`, `findOrFail()`, `create()`, `update()`, `delete()`, `paginate()`, `firstWhere()`, `count()`.
2. **Repository interface** — Extends the base `RahasIstiyak\SuperArtisan\Contracts\RepositoryInterface`. Add model-specific methods here.
3. **Service provider binding** — Binds the interface to the concrete class via IoC. Register it in `bootstrap/providers.php`:

```
// bootstrap/providers.php
return [
    App\Providers\AppServiceProvider::class,
    App\Providers\RepositoryServiceProvider::class, // 👈 Add this
];
```

4. **Controller with DI** — The generated controller receives the repository interface via constructor injection, promoting testability and loose coupling.

---

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

Run tests with coverage:

```
vendor/bin/phpunit --coverage-text
```

---

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

[](#contributing)

Contributions are welcome! Please submit pull requests or issues to the [GitHub repository](https://github.com/rahasistiyakofficial/laravel-super-artisan).

Please follow the existing code style and write tests for any new features.

---

License
-------

[](#license)

This package is licensed under the **MIT License**.

---

Contact
-------

[](#contact)

**Email**:
**GitHub**: [rahasistiyakofficial](https://github.com/rahasistiyakofficial)

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance93

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~382 days

Total

2

Last Release

35d ago

Major Versions

1.0.0 → 2.0.02026-07-14

PHP version history (2 changes)1.0.0PHP &gt;=8.0

2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/121127883?v=4)[Rahas Istiyak](/maintainers/rahasistiyakofficial)[@rahasistiyakofficial](https://github.com/rahasistiyakofficial)

---

Top Contributors

[![IstiyakCPL](https://avatars.githubusercontent.com/u/182621267?v=4)](https://github.com/IstiyakCPL "IstiyakCPL (12 commits)")[![rahasistiyakofficial](https://avatars.githubusercontent.com/u/121127883?v=4)](https://github.com/rahasistiyakofficial "rahasistiyakofficial (1 commits)")

---

Tags

apilaravelscaffoldinggeneratorartisanworkflowlivewirerepository patternreactdomaincode-generationfilamentvuedeveloper-toolsblueprintservice pattern

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rahasistiyak-laravel-super-artisan/health.svg)

```
[![Health](https://phpackages.com/badges/rahasistiyak-laravel-super-artisan/health.svg)](https://phpackages.com/packages/rahasistiyak-laravel-super-artisan)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k38.9M150](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k15.0M69](/packages/knuckleswtf-scribe)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

793.9k](/packages/scriptdevelop-whatsapp-manager)[dskripchenko/laravel-api

Versioned Laravel APIs with OpenAPI 3.0 docs auto-generated from PHP docblocks — no annotations, no YAML — plus CRUD scaffolding and middleware cascades.

115.8k7](/packages/dskripchenko-laravel-api)[ercogx/laravel-filament-starter-kit

This is a Filament v5 Starter Kit for Laravel 13, designed to accelerate the development of Filament-powered applications.

471.8k](/packages/ercogx-laravel-filament-starter-kit)

PHPackages © 2026

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