arrowsgm / nova-phpinfo
A Laravel Nova PHP info tool.
Installs: 19 052
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: >=7.2.0
- laravel/nova: *
This package is auto-updated.
Last update: 2025-02-25 02:33:35 UTC
README
Installation
Install the package via Composer in any Laravel app using Nova:
composer require arrowsgm/nova-phpinfo
Register the tool with Nova in the tools
method of your NovaServiceProvider
:
// in app/Providers/NovaServiceProvider.php //... use Arrowsgm\NovaPhpinfo\NovaPhpinfo; use Laravel\Nova\NovaApplicationServiceProvider; //... class NovaServiceProvider extends NovaApplicationServiceProvider { //... public function tools() { return [ //... new NovaPhpinfo, //... ]; } //... }
You can apply policy to this tool like so:
//... public function tools() { return [ //... (new NovaPhpinfo())->canSee(function ($request) { return $request->user->can('manage-users'); }), //... ]; } //...