PHPackages                             lilessam/eloquent-fields - 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. [Database &amp; ORM](/categories/database)
4. /
5. lilessam/eloquent-fields

ActiveLibrary[Database &amp; ORM](/categories/database)

lilessam/eloquent-fields
========================

Simple eloquent model fields generator package for Laravel 5.5

1651PHP

Since Dec 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lilessam/EloquentFields)[ Packagist](https://packagist.org/packages/lilessam/eloquent-fields)[ RSS](/packages/lilessam-eloquent-fields/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)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 lilessam/eloquent-fields dev-master
```

Then in your model use the trait `Lilessam\EloquentFields\Traits\FormGenerator` like the following:

```
