imrandevbd/laravel-filament-master

Turn any Eloquent model into a fully working Filament CRUD with visual migration, controller, and route control tools.

Maintainers

Package info

github.com/imranbru99/laravel-filament-master

Homepage

pkg:composer/imrandevbd/laravel-filament-master

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-08-23 05:29 UTC

This package is auto-updated.

Last update: 2026-08-23 05:30:35 UTC


README

Latest Version on Packagist Total Downloads License

Turn any Eloquent model into a fully working Filament CRUD (list, create, edit, view, routes, permissions) with zero or near-zero boilerplate, plus a visual in-browser development layer directly inside your Filament Admin Panel (Visual Migration Builder, Controller & Form Request Generator, Route Control Tower, Data Forge, Widget Studio, ERD Schema Graph, and Unified Module Studio).

Key Features

1. Schema-Driven Auto Generation

  • Auto-reads table columns via Schema::getColumns()
  • Auto-maps column types to rich Filament form components (TextInput, Textarea, Toggle, DatePicker, DateTimePicker, Select, FileUpload, ColorPicker, KeyValue)
  • Auto-detects foreign keys (*_id + FK constraints) into searchable relationship selects (Select::make()->relationship())
  • Auto-generates table columns with smart defaults (searchable on strings, sortable on dates/numbers/enums)
  • Auto-detects enum columns and renders styled badges & select dropdowns

2. Extensible Base Classes (Zero-Boilerplate)

  • BaseResource — dynamically handles forms, tables, filters, global search, exports, and RBAC if not overridden
  • Override hooks whenever you want fine-grained customization:
    public static function hiddenFields(): array { return ['internal_notes']; }
    public static function searchableFields(): array { return ['title', 'sku']; }
    public static function formOverrides(): array {
        return ['description' => Forms\Components\RichEditor::make('description')];
    }
  • BaseListPage, BaseCreatePage, BaseEditPage, BaseViewPage with activity log hooks (created_by/updated_by) and SoftDeletes support

3. Visual In-Browser Control Panel (Filament Studio)

  • Unified Module Studio: One-screen full-stack builder: Table Schema -> Migration -> Eloquent Model -> Factory & Seeder -> Filament CRUD Resource -> API Controller -> Policy -> Tests -> Adhikar RBAC Permissions.
  • Visual Migration Builder: Visually design tables, add/alter columns, preview generated migration PHP code in real-time, and run migrations immediately.
  • Visual Controller Generator: Generate API (JSON) or Web (Blade) controllers, Form Requests with schema-derived validation rules, and API JsonResource classes.
  • Visual Route Control Tower: Interactive real-time route browser showing all application routes, HTTP method badges, handler file locations, line numbers, and linked Filament resources.
  • Data Forge (Factory & Seeder Studio): Visual generator for Laravel Factories and Seeders with intelligent Faker heuristics + 1-click in-browser live record seeding.
  • Widget & Analytics Studio: Scaffold Filament StatsOverviewWidget (financial totals, daily counts) and monthly trend chart widgets with live preview.
  • Database ERD Graph Viewer: Interactive Mermaid Entity-Relationship diagram showing all tables, columns, primary keys, and foreign key relations.

4. Artisan CLI Commands Suite

  • php artisan master:all {Model} [--migrate] [--seed]Super Scaffolder: Generates full stack in under 1 second!
  • php artisan master:resource {Model} [--with-relations] [--explicit] — Scaffold a Filament Resource extending BaseResource
  • php artisan master:controller {Model} [--api] [--web] — Generate API / Web controllers and form requests
  • php artisan master:migration {table} [--alter] — Generate migration files
  • php artisan master:factory {Model} [--seed] — Generate intelligent Model Factories
  • php artisan master:seeder {Model} [--count=20] — Generate Database Seeders
  • php artisan master:widget {Model} [--stats] [--chart] — Generate Dashboard Stats and Chart widgets
  • php artisan master:policy {Model} — Generate model authorization Policies
  • php artisan master:test {Model} [--pest] [--phpunit] — Scaffold complete CRUD Feature tests
  • php artisan master:openapi — Generate OpenAPI 3.0 REST API specification documentation
  • php artisan master:sync — Scan database columns vs Filament resources to flag schema drift

5. RBAC & Permissions Integration

  • Native hook for Adhikar RBAC (view Product, create Product, update Product, delete Product, etc.)
  • Automatic fallback to standard Laravel Gates

Installation

composer require imrandevbd/laravel-filament-master

Publish configuration and views:

php artisan master:install

Register the Visual Studio in your Filament Panel

In your Panel Provider (e.g. app/Providers/Filament/AdminPanelProvider.php):

use ImranDev\FilamentMaster\FilamentMasterPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(FilamentMasterPlugin::make());
}

Usage

Zero-Boilerplate Resource

Create a resource extending BaseResource:

namespace App\Filament\Resources;

use App\Models\Product;
use ImranDev\FilamentMaster\Resources\BaseResource;

class ProductResource extends BaseResource
{
    protected static ?string $model = Product::class;
}

That's it! ProductResource will dynamically inspect your database table and render full list, create, edit, view forms and tables with search, sorting, bulk actions, and exports.

Requirements & Compatibility

Package / Framework Supported Versions
PHP ^8.1 | ^8.2 | ^8.3 | ^8.4 | ^8.5
Laravel 10.x | 11.x | 12.x | 13.x
Filament v3.x | v4.x

License

The MIT License (MIT). Please see License File for more information.

Developed by Imran Dev BD

Platform Link
Portfolio imrandev.bd
LinkedIn linkedin.com/in/imranbru99
GitHub github.com/imranbru99
X / Twitter @imrandev_bd
YouTube @ImranDevBD
Facebook ExpertImranDev
WhatsApp +880 1576-918420
Email me@imrandev.bd
All Links linktr.ee/ExpertImranDev

Need help or have questions? Contact → imrandev.bd/contact