grafite/forms

A remarkably magical form package for Laravel.
7,322 37
Install
composer require grafite/forms
Latest Version:v7.9.1
PHP:>=8.2
License:MIT
Last Updated:Sep 22, 2026
Links: GitHub  ·  Packagist
Maintainer: mlantz

Grafite Forms

Forms - An amazing Forms component for Laravel.

Build Status Maintainability Packagist License: MIT

The Forms package lets you generate forms as well as fields with standard make commands. Inside your forms for models you can specify the fields that need to be generated and then simply pass the form to the view. No more writing html forms, error handling etc. It can handle Eloquent relationships and easily work with ajax requests for more dynamic form submissions.

Author(s):

Requirements

  1. PHP 8.2+
  2. OpenSSL

Compatibility and Support

Laravel Version Package Tag Supported
^11.x - ^12.x 7.x yes
^7.x - 11.x 6.x no
^7.x - ^8.x 5.x no
^7.x - ^8.x 4.x no
^7.x 3.x no
^5.8.x - 7.x 2.x no
5.4.x - 5.8.x 1.3.x no
5.4.x 1.1.x no
5.3.x 1.0.x no

Installation

Start a new Laravel project:

composer create-project laravel/laravel your-project-name

Then run the following to add Forms

composer require "grafite/forms"

Time to publish those assets!

php artisan vendor:publish --provider="Grafite\Forms\FormsProvider"

Documentation

https://documentation.grafite.ca/docs/utilities-forms

Upgrading from 3.x to 4.x (Renaming)

The package was renamed in version 3 to 4. This means that the following would need to be changed on your code base:

form-maker.php -> forms.php

Grafite\FormMaker -> Grafite\Forms

@formMaker -> @forms

<x-fm></x-fm> -> <x-f></x-f>

<x-fm-action></x-fm-action> -> <x-f-action></x-f-action>

<x-fm-delete></x-fm-delete> -> <x-f-delete></x-f-delete>

<x-fm-search></x-fm-search> -> <x-f-search></x-f-search>

Asset Sources for CSP

js.hcaptcha.com cdn.jsdelivr.net

License

Forms is open-sourced software licensed under the MIT license

Bug Reporting and Feature Requests

Please add as many details as possible regarding submission of issues and feature requests

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Related Packages

barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

388,136 162
eusonlito/laravel-form-manager

A package to join Laravel with Form Manager

2,217 1
msurguy/honeypot

Honeypot spam prevention

1,320,917 436
neondigital/forma

A nice way to play with forms in Laravel 4/5 and indeed any PHP project.

1,229 0
typerocket/laravel

Makes form building and model binding a breeze.

3,816 10

Version History

Version Released PHP Laravel License
v7.9.1 >=8.2 ^11.0|^12.0|^13.0 MIT
v7.9.0 >=8.2 ^11.0|^12.0|^13.0 MIT
v7.8.1 >=8.2 ^11.0|^12.0|^13.0 MIT
v7.8.0 >=8.2 ^11.0|^12.0|^13.0 MIT
v7.7.0 >=8.2 ^11.0|^12.0|^13.0 MIT