PHPackages                             outhebox/nova-hidden-field - 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. outhebox/nova-hidden-field

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

outhebox/nova-hidden-field
==========================

A Laravel Nova Hidden field.

v1.0.3(5y ago)33562.2k↓13%41MITPHPPHP &gt;=7.1.0

Since Nov 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MohmmedAshraf/nova-hidden-field)[ Packagist](https://packagist.org/packages/outhebox/nova-hidden-field)[ RSS](/packages/outhebox-nova-hidden-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (1)

Laravel Nova Hidden Field
=========================

[](#laravel-nova-hidden-field)

[![GitHub license](https://camo.githubusercontent.com/6bd993ad1abe12655c46f7d2658dcbabd167c789c5f50aa120a6ca5d91ac52b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d6f686d6d65644173687261662f6e6f76612d68696464656e2d6669656c642e737667)](https://github.com/MohmmedAshraf/nova-hidden-field/blob/master/LICENSE.md)[![GitHub issues](https://camo.githubusercontent.com/f03f7f833f1acf4c8a2d6d7e38b583bb5fe6dafcdbe0320a62cd2e7506407be1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4d6f686d6d65644173687261662f6e6f76612d68696464656e2d6669656c642e737667)](https://github.com/MohmmedAshraf/nova-hidden-field/issues)[![Total Downloads](https://camo.githubusercontent.com/20e2db755cbac087ceabc503c2e690b3e8ddfab567884e301b4a753ed19db8a9/68747470733a2f2f706f7365722e707567782e6f72672f6f75746865626f782f6e6f76612d68696464656e2d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/outhebox/nova-hidden-field)

Description
-----------

[](#description)

This field give the ability to add a hidden fields to your resources.

Support
-------

[](#support)

[![](https://camo.githubusercontent.com/3403e1895617d9d2cf0cbc66d55c9f8fbd6a590548ab8574939bd00e6bed4951/68747470733a2f2f6f75746865626f782d6769746875622d6164732e73332e75732d656173742d312e616d617a6f6e6177732e636f6d2f6e6f76612d68696464656e2d6669656c642e6a70673f743d31)](https://outhebox.dev/github-ad-click/nova-hidden-field).

Thank you for considering supporting the development of this package! If you'd like to contribute, you can buy me a coffee or sponsor me to help keep me motivated to continue improving this package. You can also support the project by starring ⭐ the repository.

To buy me a coffee, click the button below:

[![Buy Me A Coffee](https://camo.githubusercontent.com/9a769e616ce78645bf51d12e4179cfbfd72fb413722b284e0be3ec3c75a86010/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f64656661756c742d6f72616e67652e706e67)](https://www.buymeacoffee.com/outhebox)

Requrements
-----------

[](#requrements)

- Laravel 5.7+ with [Nova](https://nova.laravel.com).

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require outhebox/nova-hidden-field
```

Example Usage
-------------

[](#example-usage)

Add the field to your resource in the `fields` method:

```
use Outhebox\NovaHiddenField\HiddenField;

HiddenField::make('User', 'user_id')
    ->current_user_id(),
```

Also you can override the default value:

```
use Outhebox\NovaHiddenField\HiddenField;

HiddenField::make('User', 'column_name')
    ->defaultValue($this->get_client_id()),

/**
 * Function will return your value
 * the returned value should be string
 *
 * @return string
 */
public function get_client_id()
{
    $client = Client::find(1)->first();
    return $client->id;
}
```

Another option you may like if you want to use the relationship fields:

```
use Laravel\Nova\Fields\BelongsTo;
use Outhebox\NovaHiddenField\HiddenField;

HiddenField::make('User', 'user_id')
    ->hideFromIndex(),
    ->hideFromDetail(),
    ->current_user_id()

BelongsTo::make('User')
    ->hideWhenCreating(),
    ->hideWhenUpdating(),
```

License
-------

[](#license)

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

Donate
------

[](#donate)

If you like this package, you can show your appreciation 💜 by [donating any amount via Patreon](https://www.patreon.com/m_ashraf) to support ongoing development.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% 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.

###  Release Activity

Cadence

Every ~185 days

Total

4

Last Release

2189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fafcf25aad612ce33476889bc889bafe60e215d045c23778007218e475c8e47?d=identicon)[MohammedAshraf](/maintainers/MohammedAshraf)

---

Top Contributors

[![MohmmedAshraf](https://avatars.githubusercontent.com/u/44909285?v=4)](https://github.com/MohmmedAshraf "MohmmedAshraf (17 commits)")[![muhghazaliakbar](https://avatars.githubusercontent.com/u/8321936?v=4)](https://github.com/muhghazaliakbar "muhghazaliakbar (1 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

laravellaravel-novalaravel-nova-fieldlaravel8novaphplaravelfieldnovanova default valuenova hidden field

### Embed Badge

![Health badge](/badges/outhebox-nova-hidden-field/health.svg)

```
[![Health](https://phpackages.com/badges/outhebox-nova-hidden-field/health.svg)](https://phpackages.com/packages/outhebox-nova-hidden-field)
```

###  Alternatives

[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

781.6M5](/packages/timothyasp-nova-color-field)[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[sietse85/nova-button

(Nova 4+) A Laravel Nova package for adding buttons to your resources.

37347.3k](/packages/sietse85-nova-button)[nikaia/nova-rating-field

Add start rating field to Laravel Nova

42258.6k](/packages/nikaia-nova-rating-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)

PHPackages © 2026

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