PHPackages                             formfeed-uk/nova-resource-cards - 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. formfeed-uk/nova-resource-cards

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

formfeed-uk/nova-resource-cards
===============================

A Laravel Nova package to show cards on all CRUD pages.

1.1.0(3y ago)972.7k↓15.7%5[2 issues](https://github.com/Formfeed-UK/nova-resource-cards/issues)MITPHPPHP ^7.4|^8

Since May 19Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Formfeed-UK/nova-resource-cards)[ Packagist](https://packagist.org/packages/formfeed-uk/nova-resource-cards)[ Docs](https://github.com/formfeed-uk/nova-resource-cards)[ RSS](/packages/formfeed-uk-nova-resource-cards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Nova Resource Cards
===================

[](#nova-resource-cards)

This [Laravel Nova](https://nova.laravel.com/) package adds the functionality to add Resource Cards at the top of pages.

I consider this package feature complete, however I am open to feature requests and pull requests, if there's something you'd like to see feel free to submit an issue.

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

[](#requirements)

- `php: >=7.4`
- `laravel/nova: ^4.0`

Features
--------

[](#features)

This package wraps the following Laravel Nova pages and adds the ability to display Resource Cards above them:

- Index
- Detail
- Create
- Update
- Attach
- Update Attached
- Replicate
- Lens
- Dashboard

As the package is wrapping the pages, it should be fairly robust with regards to Nova Updates.

This package also includes more fine grained control over the pages the cards are displayed on, following the same logic as is used for Fields:

- showOnIndex
- showOnDetail
- showOnCreating
- showOnUpdating
- showOnPreview
- showOnAttach
- showOnReplicate
- showOnLens
- showOnDashboard
- hideFromIndex
- hideFromDetail
- hideFromDashboard
- hideFromLens
- hideWhenCreating
- hideWhenUpdating
- hideWhenAttaching
- hideWhenReplicating
- onlyOnIndex
- onlyOnDetail
- onlyOnForms (Now includes Attach and Replicate)
- onlyOnLens
- onlyOnDashboard
- exceptOnForms (Now includes Attach and Replicate)

Cards should extend the included `ResourceCard` class rather than the standard class, but otherwise can be used like regular cards.

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

[](#installation)

Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require formfeed-uk/nova-resource-cards
```

Usage
-----

[](#usage)

### General

[](#general)

1. Create a card [according to the Nova Documentation](https://nova.laravel.com/docs/4.0/customization/cards.html) (or use an existing card if you wish to convert it to ResourceCards).
2. Update your Card to extend ResourceCard instead of Card:

```
// MyResourceCard.php

...

use Formfeed\ResourceCards\ResourceCard;

class MyResourceCard extends ResourceCard {

    ...

}
```

3. Then simply include it like a normal card within your resource:

```
// MyNovaResource.php

use App\MyResourceCard;

...

class MyNovaResource extends Resource {

...

    public function cards(NovaRequest  $request) {
        return [
            MyResourceCard::make($request)
        ];
    }

...

}
```

Optionally chain visibility and authorisations:

```
    public function cards(NovaRequest  $request) {
        return [
            MyResourceCard::make($request)
                ->onlyOnForms()
                ->canSee(function ($request) {
                    return $request->user()->role === "admin";
                }),
        ];
    }
```

It's that simple!

Available parameters
--------------------

[](#available-parameters)

There are a number of parameters available to your card, depending on the page the card is currently on. These parameters are available on the request object as query parameters.

Note: Just because these parameters are available doesn't mean they will be populated for any given request.

### Index:

[](#index)

- resourceName
- display: "index"

### Detail:

[](#detail)

- resourceName
- resourceId
- display: "detail"

### Create:

[](#create)

- resourceName
- viaResource
- viaResourceId
- viaRelationship
- display: "create"

### Update:

[](#update)

- resourceName
- resourceId
- viaResource
- viaResourceId
- viaRelationship
- display: "update"

### Replicate:

[](#replicate)

- resourceName
- resourceId
- viaResource
- viaResourceId
- viaRelationship
- display: "replicate"

### Attach:

[](#attach)

- resourceName
- resourceId
- viaResource
- viaResourceId
- viaRelationship
- parentResource
- polymorphic
- formUniqueId
- relatedResourceName
- display: "attach"

### Update Attached:

[](#update-attached)

- resourceName
- resourceId
- viaResource
- viaResourceId
- viaRelationship
- parentResource
- polymorphic
- formUniqueId:
- relatedResourceName
- relatedResourceId
- viaPivotId
- display: "updateAttached"

### Lens:

[](#lens)

- resourceName
- lens
- display: "lens

### Dashboard:

[](#dashboard)

- resourceName: Dashboard Name
- display: "dashboard"

License
-------

[](#license)

Nova Resource Cards is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~36 days

Total

5

Last Release

1314d ago

Major Versions

0.1.1 → 1.0.02022-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/6116a0834c68177c53e80259399de5ad6cbfc8e49e2c945343f1cacf8accd14a?d=identicon)[ianrobertsFF](/maintainers/ianrobertsFF)

---

Top Contributors

[![ianrobertsFF](https://avatars.githubusercontent.com/u/91917328?v=4)](https://github.com/ianrobertsFF "ianrobertsFF (12 commits)")

---

Tags

laravelnovacards

### Embed Badge

![Health badge](/badges/formfeed-uk-nova-resource-cards/health.svg)

```
[![Health](https://phpackages.com/badges/formfeed-uk-nova-resource-cards/health.svg)](https://phpackages.com/packages/formfeed-uk-nova-resource-cards)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)

PHPackages © 2026

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