PHPackages                             markwalet/nova-modal-response - 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. markwalet/nova-modal-response

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

markwalet/nova-modal-response
=============================

A Laravel Nova asset for Modal responses on an action.

v1.2.1(1mo ago)17878.9k↓25%9[6 issues](https://github.com/markwalet/nova-modal-response/issues)[1 PRs](https://github.com/markwalet/nova-modal-response/pulls)MITPHPPHP ^8.2CI failing

Since Jan 27Pushed 2w ago1 watchersCompare

[ Source](https://github.com/markwalet/nova-modal-response)[ Packagist](https://packagist.org/packages/markwalet/nova-modal-response)[ Fund](https://www.paypal.me/markwalet)[ GitHub Sponsors](https://github.com/markwalet)[ RSS](/packages/markwalet-nova-modal-response/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (27)Versions (59)Used By (0)

Nova Modal Response
===================

[](#nova-modal-response)

[![Build Status](https://github.com/markwalet/nova-modal-response/workflows/tests/badge.svg)](https://github.com/markwalet/nova-modal-response/actions)[![Total Downloads](https://camo.githubusercontent.com/e20c7e0147c5b3444a792118be03118b998c486246eabcd646a1efd421352234/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61726b77616c65742f6e6f76612d6d6f64616c2d726573706f6e7365)](https://packagist.org/packages/markwalet/nova-modal-response)[![Latest Stable Version](https://camo.githubusercontent.com/27b763c8b48c63eb87e0ff89aec01ec2a207ca9ec3b4c31bef750e905c169053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61726b77616c65742f6e6f76612d6d6f64616c2d726573706f6e7365)](https://packagist.org/packages/markwalet/nova-modal-response)[![License](https://camo.githubusercontent.com/d8918860c37f775b160d073a0d61cd25c57aabd501fa23f52bb5f763a91ecca1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d61726b77616c65742f6e6f76612d6d6f64616c2d726573706f6e7365)](https://packagist.org/packages/markwalet/nova-modal-response)

Enabling custom modals for action responses in [Laravel Nova](https://nova.laravel.com).

[![Example screenshot](readme-heading.png)](readme-heading.png)

More info for this specific feature can be found in the [Nova Documentation](https://nova.laravel.com/docs/v5/actions/defining-actions#custom-modal-responses).

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

[](#installation)

```
composer require markwalet/nova-modal-response
```

This package requires PHP 8.2+ and Laravel 12+.

Usage
-----

[](#usage)

```
use Markwalet\NovaModalResponse\ModalResponse;

ModalResponse::text('This is way better than that small notification in the bottom right!')
    ->title('Result in a modal');
```

> **Note:** Always build responses through the `ModalResponse` helper. Hand-rolling the raw payload with `Action::modal('modal-response', [...])` is not a supported part of this package's API and may break without notice.

When you want to render raw html, you can use the `html` parameter instead:

```
ModalResponse::html('Show this package to your friendsContribute???Profit!');
```

There is also a special mode for rendering code snippets. This will surround the body with a `` and `` tag but still leave escaping enabled.

```
ModalResponse::code(file_get_contents(__FILE__))->title('Look at me!');
```

Syntax highlighting is enabled by default for code and json blocks. It is using [highlight.js](https://highlightjs.org/) under the hood. You can disable this by calling `->withoutSyntaxHighlighting()`.

If you want to show some serializable data to the client, you can do that as well:

```
ModalResponse::json([
    'lorem' => 'ipsum',
    'dolor' => [
        'sit',
        'amet',
    ],
]);
```

You can also specify the size using the `size` option:

```
ModalResponse::text('Hello world')->size('7xl');
```

###  Health Score

61

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~61 days

Recently: every ~3 days

Total

21

Last Release

24d ago

Major Versions

v0.3.1 → v1.0.02024-12-19

v1.2.1 → v2.x-dev2026-06-10

PHP version history (4 changes)v0.1.0PHP ^8.0

v0.2.1PHP ^7.4||^8.0

v0.3.1PHP ^8.1

v1.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![markwalet](https://avatars.githubusercontent.com/u/11446771?v=4)](https://github.com/markwalet "markwalet (80 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![Hannoma](https://avatars.githubusercontent.com/u/7955676?v=4)](https://github.com/Hannoma "Hannoma (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![lptn](https://avatars.githubusercontent.com/u/150333538?v=4)](https://github.com/lptn "lptn (1 commits)")

---

Tags

laravelmodalactionnova

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/markwalet-nova-modal-response/health.svg)

```
[![Health](https://phpackages.com/badges/markwalet-nova-modal-response/health.svg)](https://phpackages.com/packages/markwalet-nova-modal-response)
```

###  Alternatives

[ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

6163.5M22](/packages/ebess-advanced-nova-media-library)[optimistdigital/nova-sortable

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

2852.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.

2862.1M9](/packages/outl1ne-nova-sortable)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

58249.9k](/packages/sbine-route-viewer)[novius/laravel-nova-order-nestedset-field

A Laravel Nova field that make your resources orderable

2393.1k2](/packages/novius-laravel-nova-order-nestedset-field)[stepanenko3/nova-cards

A Laravel Nova info cards.

33150.0k](/packages/stepanenko3-nova-cards)

PHPackages © 2026

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