PHPackages                             intcore/filament-resource-generator - 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. intcore/filament-resource-generator

ActiveLibrary[Admin Panels](/categories/admin)

intcore/filament-resource-generator
===================================

A powerful Laravel Filament package for generating complete modules with models, migrations, factories, seeders, and admin resources

v1.2.2(10mo ago)1124MITPHPPHP ^8.1|^8.2|^8.3

Since Sep 13Pushed 10mo agoCompare

[ Source](https://github.com/hazem-hammad/filament-resource-generator)[ Packagist](https://packagist.org/packages/intcore/filament-resource-generator)[ RSS](/packages/intcore-filament-resource-generator/feed)WikiDiscussions main Synced 4w ago

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

Filament Resource Generator
===========================

[](#filament-resource-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec0eeef7d5353aebd0252f294fca7dc6f06aabc128d5194ad1bad0ed54f5c914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74636f72652f66696c616d656e742d7265736f757263652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intcore/filament-resource-generator)[![Total Downloads](https://camo.githubusercontent.com/c8dd4d25a81a8526291649859938fb82cab695e108b42055221bae5a1d9c741d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e74636f72652f66696c616d656e742d7265736f757263652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intcore/filament-resource-generator)

A powerful Laravel Filament package for generating complete modules with models, migrations, factories, seeders, and admin resources through an intuitive web interface.

Features
--------

[](#features)

- 🚀 **Complete Module Generation**: Generate models, migrations, factories, seeders, and Filament resources
- 🎯 **Intuitive Web Interface**: User-friendly wizard-based form in Filament admin
- 🔗 **Smart Relationships**: Automatic foreign key detection and relationship configuration
- 📊 **Table Introspection**: Intelligent dropdown selection for existing models and columns
- 🎨 **Customizable Forms**: Multiple input types (text, textarea, select, toggle, date pickers, etc.)
- 📝 **Auto-population**: Smart defaults based on column types and naming conventions
- 🏃‍♂️ **Auto Execution**: Optional automatic migration and seeder execution
- 🧪 **Factory Integration**: Automatic factory generation with seeder dependencies

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

[](#installation)

You can install the package via Composer:

```
composer require intcore/filament-resource-generator
```

### Plugin Registration

[](#plugin-registration)

Register the plugin in your `AdminPanelProvider`:

```
// app/Providers/Filament/AdminPanelProvider.php

use Intcore\FilamentResourceGenerator\ResourceGenerator;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugin(ResourceGenerator::make());
}
```

Usage
-----

[](#usage)

1. **Access the Module Generator**: Navigate to your Filament admin panel and look for "Module Generator" in the navigation menu.
2. **Create a New Module**:

    - Fill in the module information (name, description, etc.)
    - Define your database schema (create new tables or use existing ones)
    - Configure your Filament resource (forms, tables, pages, actions)
3. **Generate**: Click generate and watch as your complete module is created with all necessary files.

### Example: Creating a Blog Module

[](#example-creating-a-blog-module)

1. **Module Information**:

    - Module Name: `Post`
    - Table Name: `posts`
    - Description: `Blog post management`
2. **Database Schema**:

    - `title` (string, required)
    - `content` (longText)
    - `category_id` (foreignId → categories table)
    - `is_published` (boolean)
    - `published_at` (datetime, nullable)
3. **Filament Configuration**:

    - Form Fields: Auto-configured based on column types
    - Table Columns: Smart relationship display (category.name instead of category\_id)
    - Pages: List, Create, Edit
    - Actions: Edit, Delete, Bulk Delete

Generated Files
---------------

[](#generated-files)

The package generates:

- **Model**: `app/Models/Post.php` with relationships and fillable fields
- **Migration**: `database/migrations/create_posts_table.php`
- **Factory**: `database/factories/PostFactory.php`
- **Seeder**: `database/seeders/PostSeeder.php`
- **Filament Resource**: `app/Filament/Resources/PostResource.php`
- **Resource Pages**: Create, Edit, List pages

Advanced Features
-----------------

[](#advanced-features)

### Foreign Key Relationships

[](#foreign-key-relationships)

The package intelligently handles foreign key relationships:

- **Auto-detection**: `category_id` column automatically suggests `Category` model
- **Dynamic Dropdowns**: Select from actual models and their database columns
- **Smart Display**: Table columns show `category.name` instead of raw IDs
- **Relationship Forms**: Foreign key fields become searchable select dropdowns with inline creation

### Existing Table Support

[](#existing-table-support)

You can build Filament resources for existing tables:

1. Select "Use Existing Table" in Database Schema
2. Choose from available tables
3. Automatic column detection and type mapping
4. Configure forms and tables based on actual database structure

### Custom Input Types

[](#custom-input-types)

Support for various Filament input types:

- Text Input, Textarea, Rich Text Editor
- Select, Toggle, Tags Input
- Date Picker, DateTime Picker, Time Picker
- File Upload, Color Picker
- And more...

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

[](#requirements)

- PHP 8.1+
- Laravel 10.0+
- Filament 3.0+

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Hazem Hamaad](http://github.com/hazem-hammad)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance54

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

18

Last Release

320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7902ade0f8c541e72ca64bbba29a670c88a2119ee2d3eb3228b6a7498e1a0174?d=identicon)[hazem\_hamaad](/maintainers/hazem_hamaad)

---

Top Contributors

[![hazem-hamaad](https://avatars.githubusercontent.com/u/13048154?v=4)](https://github.com/hazem-hamaad "hazem-hamaad (21 commits)")

---

Tags

laravelgeneratormodulecrudadminfilament

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/intcore-filament-resource-generator/health.svg)

```
[![Health](https://phpackages.com/badges/intcore-filament-resource-generator/health.svg)](https://phpackages.com/packages/intcore-filament-resource-generator)
```

###  Alternatives

[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

86240.3k9](/packages/stephenjude-filament-two-factor-authentication)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[slimani/filament-media-manager

A media manager plugin for Filament.

179.7k1](/packages/slimani-filament-media-manager)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16321.5k](/packages/backstage-mails)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6758.2k2](/packages/marcelweidum-filament-passkeys)[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)
