PHPackages                             marshmallow/nova-input-with-type - 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. marshmallow/nova-input-with-type

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

marshmallow/nova-input-with-type
================================

A Laravel Nova field.

v1.0.0(3y ago)13.1kMITPHPPHP ^7.3|^8.0

Since Dec 5Pushed 1w ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/nova-input-with-type)[ Packagist](https://packagist.org/packages/marshmallow/nova-input-with-type)[ RSS](/packages/marshmallow-nova-input-with-type/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Nova Input with Type Package
============================

[](#nova-input-with-type-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76e4ac95147895f0edf28e157e604f4162f22247d42a17dc32bc70f15f6b0c87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f6e6f76612d696e7075742d776974682d747970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/nova-input-with-type)[![Total Downloads](https://camo.githubusercontent.com/e7afc4db86913be28b72f21a9a5cdae06a6dd8cdeb6e5bef4b38c10cd9ce5fa6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f6e6f76612d696e7075742d776974682d747970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/nova-input-with-type)[![Issues](https://camo.githubusercontent.com/ecfd5f52820ecab681bc88212220a5a8627728cae9b7712a418a86ff0be941f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f6e6f76612d696e7075742d776974682d747970653f7374796c653d666c61742d737175617265)](https://github.com/marshmallow-packages/nova-input-with-type/issues)[![License](https://camo.githubusercontent.com/7daf947733fc35fba8ead0fad547445cf348bb5f97286dc6e0e2e5f64c356340/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d617273686d616c6c6f772f6e6f76612d696e7075742d776974682d747970653f7374796c653d666c61742d737175617265)](https://github.com/marshmallow-packages/nova-input-with-type)

Do you ever just wish you can set an input type for the Nova Field you are creating? You need a field with the time type but there is no package available for this. Wait no more! This extremely simple package lets you set your input type yourself.

**🚨 Please make sure your browser supports the field types you are using!** [![](resources/readme/preview.png)](resources/readme/preview.png)

Requirements
------------

[](#requirements)

- PHP `^7.3` or `^8.0`
- Laravel Nova

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

[](#installation)

You can install the package via Composer:

```
composer require marshmallow/nova-input-with-type
```

The field is registered automatically through Laravel's package discovery (`Marshmallow\InputWithType\FieldServiceProvider`); no further setup is required.

Usage
-----

[](#usage)

You can just call the `type` method on your new field and nothing extra is needed:

```
use Marshmallow\InputWithType\InputWithType;

InputWithType::make('Started working at')->type('time'),
```

### Methods

[](#methods)

We've also created some alias methods for you if you don't want to use the `type` method. Here are some examples:

### text()

[](#text)

```
InputWithType::make('My field')->text(),
```

### color()

[](#color)

```
InputWithType::make('My field')->color(),
```

### date()

[](#date)

```
InputWithType::make('My field')->date(),
```

### datetimeLocal()

[](#datetimelocal)

```
InputWithType::make('My field')->datetimeLocal(),
```

### email()

[](#email)

```
InputWithType::make('My field')->email(),
```

### hidden()

[](#hidden)

```
InputWithType::make('My field')->hidden(),
```

### number()

[](#number)

```
InputWithType::make('My field')->number(),
```

### password()

[](#password)

```
InputWithType::make('My field')->password(),
```

### range()

[](#range)

```
InputWithType::make('My field')
    ->range()
    ->min(0)
    ->max(10)
    ->step(2),
```

### tel()

[](#tel)

```
InputWithType::make('My field')->tel(),
```

### time()

[](#time)

```
InputWithType::make('My field')->time(),
```

### url()

[](#url)

```
InputWithType::make('My field')->url(),
```

### week()

[](#week)

```
InputWithType::make('My field')
    ->week()
    ->min('2018-W18')
    ->max('2018-W26'),
```

### month()

[](#month)

```
InputWithType::make('My field')
    ->month()
    ->min('2018-03'),
```

### search()

[](#search)

```
InputWithType::make('My field')->search(),
```

The `min()`, `max()` and `step()` helpers are passed straight through to the rendered input element, so they apply to any type that supports them (such as `number`, `range`, `date`, `week` and `month`).

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stef van Esch](https://github.com/stefvanesch)
- [All Contributors](https://github.com/marshmallow-packages/nova-input-with-type/contributors)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

39

↑

LowBetter than 85% of packages

Maintenance64

Regular maintenance activity

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (6 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/marshmallow-nova-input-with-type/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-nova-input-with-type/health.svg)](https://phpackages.com/packages/marshmallow-nova-input-with-type)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3423.6M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

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

51177.6k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17178.1k1](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11258.1k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1197.8k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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