PHP code example of arrowsgm / nova-phpinfo
1. Go to this page and download the library: Download arrowsgm/nova-phpinfo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
arrowsgm / nova-phpinfo example snippets
// in app/Providers/NovaServiceProvider.php
//...
use Arrowsgm\NovaPhpinfo\NovaPhpinfo;
use Laravel\Nova\NovaApplicationServiceProvider;
//...
class NovaServiceProvider extends NovaApplicationServiceProvider {
//...
public function tools()
{
return [
//...
new NovaPhpinfo,
//...
];
}
//...
}
//...
public function tools()
{
return [
//...
(new NovaPhpinfo())->canSee(function ($request) {
return $request->user->can('manage-users');
}),
//...
];
}
//...