Skip to content

View dashboard for msonowal/laravel-auditor repository

Notifications You must be signed in to change notification settings

bhavinjr/auditor-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auditor view

Auditor view provides a dashboard for msonowal/laravel-auditor package which is used for an activity log(Mongo DB)

Auditor view is created using Vue Component. Structure and theme from (laravel/horizon)

Installation

composer require bhavinjr/auditor-view

After installing Auditor view, publish its assets using the vendor:publish Artisan command:

Dashboard Authorization

Auditor view exposes a dashboard at /viewdit. By default, you will only be able to access this dashboard in the local environment. To define a more specific access policy for the dashboard, you should use the Viewdit::auth method. The auth method accepts a callback which should return true or false, indicating whether the user should have access to the Viewdit dashboard:

use Bhavinjr\Viewdit\Viewdit;

Viewdit::auth(function ($request) {
    return //true or false
});

Credits

laravel/horizon and msonowal/laravel-auditor

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT