PHP code example of eduardoaraujo01 / nova-env
1. Go to this page and download the library: Download eduardoaraujo01/nova-env 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/ */
eduardoaraujo01 / nova-env example snippets
injectablephp
/**
* Get the cards available for the request.
*
* @param Request $request
* @return array
*/
public function cards(Request $request): array
{
return [
new NovaEnv,
];
}
// OR
/**
* Get the cards available for the request.
*
* @param Request $request
* @return array
*/
public function cards(Request $request): array
{
return [
(new NovaEnv)->canSee(function ($request) {
return $request->user()->isSuperAdmin();
}),
];
}