PHPackages                             webmachine/custom-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webmachine/custom-fields

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

webmachine/custom-fields
========================

CustomFields for Laravel 5

0435PHP

Since Mar 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/webmachineltda/custom-fields)[ Packagist](https://packagist.org/packages/webmachine/custom-fields)[ RSS](/packages/webmachine-custom-fields/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CustomFields for Laravel 5
==========================

[](#customfields-for-laravel-5)

Install
-------

[](#install)

Via Composer

```
$ composer require webmachine/custom-fields
```

Next, you must install the service provider and facade alias:

```
// config/app.php
'providers' => [
    ...
    Webmachine\CustomFields\CustomFieldsServiceProvider::class,
];

...

'aliases' => [
    ...
    'CustomFields' => Webmachine\CustomFields\CustomFieldsFacade::class,
];
```

Publish

```
$ php artisan vendor:publish --provider="Webmachine\CustomFields\CustomFieldsServiceProvider"
```

Usage
-----

[](#usage)

In your Controller, save your custom fields for a given table record:

```
...
use Webmachine\CustomFields\CustomFieldsFacade as CustomFields;

class FooController extends Controller {
    ...
    public function storage() {
        ...
        $foo->save();
        CustomFields::save($foo->id);
    }
}
```

In your Request, validate your cutom field

```
...
use Webmachine\CustomFields\CustomFieldsFacade as CustomFields;

class FooRequest extends Request {
    ...
    public function rules() {
        $rules = [
            ...
        ];
        $custom_rules = CustomFields::rules('table', 'form_scope');
        return array_merge($rules, $custom_rules);
    }
    ...
    public function attributes() {
        $attributes = [];
        $custom_attributes = CustomFields::attributes('table', 'form_scope');
        return array_merge($attributes, $custom_attributes);
    }
}
```

In your view

```
{!! CustomFields::show('table', 'form_scope') !!}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71db86d24b04a18c9016c8b517c9021df438cd3ad4a704bd5a5d2131ca58c1fc?d=identicon)[webmachine](/maintainers/webmachine)

---

Top Contributors

[![caacuna](https://avatars.githubusercontent.com/u/8000557?v=4)](https://github.com/caacuna "caacuna (3 commits)")

### Embed Badge

![Health badge](/badges/webmachine-custom-fields/health.svg)

```
[![Health](https://phpackages.com/badges/webmachine-custom-fields/health.svg)](https://phpackages.com/packages/webmachine-custom-fields)
```

###  Alternatives

[careship/functional-php

A monad-like set of utilities for PHP, type-checked by Psalm.

108.4k](/packages/careship-functional-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
