vitorhugodotpt/nova-view-middleware

Middleware to control visibility of index of one Resource in Laravel Nova

1.0.5 2020-11-23 10:00 UTC

This package is auto-updated.

Last update: 2024-09-23 19:13:13 UTC


README

Latest Version on Packagist Total Downloads

Middleware to control visibility of index of one Resource in Laravel Nova

Installation

You can install the package via composer:

composer require vitorhugodotpt/nova-view-middleware

Usage

Add class to config > nova.php

'middleware' => [
    ...
    \Vitorhugodotpt\NovaViewMiddleware\NovaViewMiddleware::class,
    ...
],

if you want to have the index resource available, even if the policy view is false.

public static $viewMiddleware = true;

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email vhugo@vitorhugo.pt instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.