vitorhugodotpt / nova-view-middleware
Middleware to control visibility of index of one Resource in Laravel Nova
Installs: 1 699
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-09-23 19:13:13 UTC
README
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.