1. Go to this page and download the library: Download devpartners/auditable-log 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/ */
devpartners / auditable-log example snippets
public function fields(Request $request)
{
return [
Text::make('Name'),
Text::make('E-mail'),
// Shows audit log button on detail view, which expands audit trail
AuditableLog::make()
];
}
// Is the user able to access the audit log for this resource?
public function audit($loggedInUser, $resource) {
return true;
}
// Is the user able to restore values based on audits for this resource?
public function audit_restore($loggedInUser, $resource) {
return true;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.