PHPackages                             novius/laravel-nova-field-preview - 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. novius/laravel-nova-field-preview

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

novius/laravel-nova-field-preview
=================================

A Laravel Nova field for open front preview

2.1.1(1mo ago)19.0k↓36.7%2AGPL-3.0-or-laterPHPPHP &gt;=8.2CI passing

Since Jun 23Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/novius/laravel-nova-field-preview)[ Packagist](https://packagist.org/packages/novius/laravel-nova-field-preview)[ RSS](/packages/novius-laravel-nova-field-preview/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (10)Versions (7)Used By (2)

Laravel Nova Field Preview
==========================

[](#laravel-nova-field-preview)

[![License: AGPL v3](https://camo.githubusercontent.com/c61341f63648cdd5aba4f7a073b513106a63778c27b15f96c56157642bc943b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c25323076332d626c75652e737667)](http://www.gnu.org/licenses/agpl-3.0)

Introduction
------------

[](#introduction)

This package allows you to add [Laravel Nova](https://nova.laravel.com/) field to open the front preview url of a ressource.

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

[](#requirements)

- Laravel Nova &gt;= 4.0
- Laravel &gt;= 10.0
- Laravel &gt;= 8.2

> **NOTE**: These instructions are for Laravel &gt;= 10.0 and PHP &gt;= 8.2 If you are using prior version, please see the [previous version's docs](https://github.com/novius/laravel-nova-field-preview/tree/1.x).

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

[](#installation)

You can install the package via composer:

```
composer require novius/laravel-nova-field-preview
```

Add `OpenPreview` field on your Nova Resource.

If the resource have a `previewUrl` method :

```
use Laravel\Nova\Resource;
use Novius\LaravelNovaFieldPreview\Nova\Fields\OpenPreview;

class Post extends Resource
{
    protected function fields(): array
    {
        return [
            OpenPreview::make('Preview link'),
```

Otherwise you must specify the preview url :

```
use Laravel\Nova\Resource;
use Novius\LaravelNovaFieldPreview\Nova\Fields\OpenPreview;

class Post extends Resource
{
    protected function fields(): array
    {
        return [
            OpenPreview::make('Preview link')
            ->previewUrl(function() {
                // Return here the preview url of the resource
                return $this->resource->url().'.?preview=1';
            }),
```

Lang files
----------

[](#lang-files)

If you want to customize the lang files, you can publish them with:

```
php artisan vendor:publish --provider="Novius\LaravelNovaFieldPreview\LaravelNovaFieldPreviewServiceProvider" --tag="lang"
```

Lint
----

[](#lint)

Lint your code with Laravel Pint using:

```
composer run-script lint
```

Licence
-------

[](#licence)

This package is under [GNU Affero General Public License v3](http://www.gnu.org/licenses/agpl-3.0.html) or (at your option) any later version.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Recently: every ~263 days

Total

6

Last Release

54d ago

Major Versions

1.x-dev → 2.0.02024-07-10

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/341860?v=4)[Novius](/maintainers/novius)[@novius](https://github.com/novius)

---

Top Contributors

[![felixgilles](https://avatars.githubusercontent.com/u/900854?v=4)](https://github.com/felixgilles "felixgilles (7 commits)")[![tony-novius](https://avatars.githubusercontent.com/u/243603340?v=4)](https://github.com/tony-novius "tony-novius (1 commits)")

---

Tags

laravelnovanova-fieldurllaravelpreviewnova

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/novius-laravel-nova-field-preview/health.svg)

```
[![Health](https://phpackages.com/badges/novius-laravel-nova-field-preview/health.svg)](https://phpackages.com/packages/novius-laravel-nova-field-preview)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[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)[inspheric/nova-url-field

A Laravel Nova URL field.

1031.3M1](/packages/inspheric-nova-url-field)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

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

PHPackages © 2026

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