PHPackages                             toriomlab/eloquent-form-elements - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. toriomlab/eloquent-form-elements

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

toriomlab/eloquent-form-elements
================================

Simple eloquent model form elements generator package from Laravel

1.6.0(5y ago)11391MITPHPPHP &gt;=7.1.0

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ToriomLab/eloquent-form-elements)[ Packagist](https://packagist.org/packages/toriomlab/eloquent-form-elements)[ RSS](/packages/toriomlab-eloquent-form-elements/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

### Eloquent-Fields Generator Package For Laravel

[](#eloquent-fields-generator-package-for--laravel)

This package actually contains a helper function and a trait. Its basic target is to reduce time that developers spend writing Creation &amp; Update forms markup for Eloquent Models.

It's basic idea is to use the `FormGenerator` trait in your model and write a tiny array with your fields' preferences. Then you can use the helper function to generate a creation or update form.

#### Installing.

[](#installing)

###### Via composer

[](#via-composer)

```
composer require toriomlab/eloquent-form-elements dev-master
```

Then in your model use the trait `toriomlab\EloquentFormElements\Traits\FormGenerator` like the following:

```
