php-junior/nova-quick-view

Laravel Nova Quick View.

Fund package maintenance!
PHPJunior
Liberapay

Installs: 2 955

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/php-junior/nova-quick-view

v1.0.0 2020-12-09 04:05 UTC

This package is auto-updated.

Last update: 2025-09-23 11:13:58 UTC


README

Latest Stable Version Total Downloads

screenshot 1 screenshot 2 screenshot 3

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require php-junior/nova-quick-view

Usage

Add the following code :

public function fields(Request $request)
{
    return [
        ...
        NovaQuickView::make('Hello', function () {
            return '<p>Hi, there!</p>';
        })
        ->icon('el-icon-search')
        ->title('I am the title')
        ->direction('rtl') rtl / ltr / ttb / btt
        ...
    ];
}

If you need to render HTML content :

public function fields(Request $request)
{
    return [
        ...
        NovaQuickView::make('Hello', function () {
            return view('partials.hello', [
                'text' => 'Hi, there!'
            ])->render();
        })
        ->icon('el-icon-search')
        ->title('I am the title')
        ->direction('rtl') // rtl / ltr / ttb / btt
        ...
    ];
}

Please check icon list from element. If you want to use fontawesome or others, import CSS file in layout.blade.php

Credits

  • All Contributors

License

The MIT License (MIT). Please see License File for more information.