LaravelPackages.net
Acme Inc.
Toggle sidebar
php-junior/nova-quick-view

Laravel Nova Quick View.

3.134
10
v1.0.0
About php-junior/nova-quick-view

php-junior/nova-quick-view is a Laravel package for laravel nova quick view.. It currently has 10 GitHub stars and 3.134 downloads on Packagist (latest version v1.0.0). Install it with composer require php-junior/nova-quick-view. Discover more Laravel packages by php-junior or browse all Laravel packages to compare alternatives.

Last updated

Nova Quick View

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.

Star History Chart