PHP code example of ohdearapp / nova-ohdear-tool

1. Go to this page and download the library: Download ohdearapp/nova-ohdear-tool 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/ */

    

ohdearapp / nova-ohdear-tool example snippets


use OhDear\OhDearTool\OhDearTool;

public function tools(): array
{
    return [
        new OhDearTool,
    ];
}

(new OhDearTool)->canSee(fn ($request) => $request->user()->is_admin)
sh
php artisan vendor:publish --tag=nova-ohdear-tool-config