Skip to content

v0.1.0

Compare
Choose a tag to compare
@KABBOUCHI KABBOUCHI released this 20 Feb 11:05
· 33 commits to master since this release

Authorization

// in app/Providers/NovaServiceProvder.php

// ...

public function tools()
{
    return [
        // ...
        (new \KABBOUCHI\LogsTool\LogsTool())
                ->canSee(function ($request) {
                    return true;
                })
                ->canDownload(function ($request) {
                    return true;
                })
                ->canDelete(function ($request) {
                    return false;
                }),
    ];
}