jhonoryza/laravel-inertia-builder

Laravel Inertia UI Builder

1.0.17 2025-09-16 02:49 UTC

This package is auto-updated.

Last update: 2025-09-16 02:50:52 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

This project is inspired by Filament PHP. It aims to build complex UI components like data tables and forms using a declarative, backend-driven approach. The structure of the UI (e.g., form fields, table columns) is defined in PHP controller classes, and a generic set of React components renders the final UI. The goal is to build dynamic interfaces without writing custom frontend page components for each resource.

Key Technologies: Laravel, Inertia.js, React, TypeScript, TailwindCSS.

Key Features

  • Declarative UI Construction: Define forms and data tables in your Laravel controllers. No need to write bespoke frontend components for every CRUD page.
  • Rich Form Fields: A wide variety of form fields are available out-of-the-box, including Text, Select, Textarea, Markdown, File Uploads, Date Pickers, and more.
  • Powerful Data Tables: Create complex data tables with searchable columns, advanced filtering, sorting, and bulk actions.
  • Reactive Components: Create reactive form elements where a change in one field automatically updates another, all handled seamlessly on the backend.
  • Relationship Handling: Automatically populate fields and table columns with data from Eloquent relationships ( belongsTo, hasMany, etc.).
  • Customizable: Extend the library with your own custom fields and filters to meet specific needs.

Docs

For more detailed examples and documentation, please check the following resources:

Requirement

currently not supported for official vue starter kit

Getting Started

Package installation

composer require jhonoryza/laravel-inertia-builder
php artisan inertia-builder:install

Generator

you need at least a table structure in your database

let's create users table using laravel migration or manual sql

then run this command :

php artisan inertia-builder:generate users

this will generate: Model, Factory, Controller, Form & Table class, Request, and Routes

then run npm run dev to recompile the frontend

Security

If you've found a bug regarding security, please mail jardik.oryza@gmail.com instead of using the issue tracker.

License

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