PHPackages                             tunezilla/dynamic-action-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. tunezilla/dynamic-action-fields

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

tunezilla/dynamic-action-fields
===============================

Dynamic Action Fields for Laravel Nova

v1.0.1(4y ago)18111.9k↓12.9%7[1 issues](https://github.com/tunezilla/nova-dynamic-action-fields/issues)MITPHPPHP &gt;=7.1.0

Since Dec 14Pushed 4y ago3 watchersCompare

[ Source](https://github.com/tunezilla/nova-dynamic-action-fields)[ Packagist](https://packagist.org/packages/tunezilla/dynamic-action-fields)[ RSS](/packages/tunezilla-dynamic-action-fields/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Dynamic Action Fields for Laravel Nova
======================================

[](#dynamic-action-fields-for-laravel-nova)

This package allows you to change the fields of a Laravel Nova Action depending on which resources are selected.

**This is experimental, proceed at your own risk**

Screenshot
----------

[](#screenshot)

[![Screenshot of Dynamic Action Fields](./screenshot.png)](./screenshot.png)

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

[](#installation)

```
composer require tunezilla/dynamic-action-fields

```

Usage
-----

[](#usage)

1. Add the `DynamicFieldAction` trait to your resource
2. Change your `public function fields()` to `public function fieldsForModels(Collection $models): array`

Example:

```
