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.0.3(2mo ago)14720.0k—2.3%9MITPHPPHP ^8.1CI passing

Since Jan 27Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (6)Versions (17)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');

// Modals can also be manually created in Nova
use Laravel\Nova\Actions\Action;

return Action::modal('modal-response', [
    'title' => 'Result in a model',
    'body' => 'This is way better than that small notification in the bottom right!',
]);
```

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

57

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~87 days

Recently: every ~111 days

Total

14

Last Release

74d ago

Major Versions

v0.3.1 → v1.0.02024-12-19

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

v0.2.1PHP ^7.4||^8.0

v0.3.1PHP ^8.1

### 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 (58 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (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

### 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

[dillingham/nova-attach-many

Attach Many Nova field

2712.0M2](/packages/dillingham-nova-attach-many)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[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)[stepanenko3/nova-cards

A Laravel Nova info cards.

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

PHPackages © 2026

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