-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
314377a
commit 64b1536
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# Resource Tool for Laravel Auditing | ||
|
||
@todo - Add some documentation | ||
A Laravel Nova Resource Tool that allows you to easily display the audit log that is created by the Laravel Auditing package (owen-it/laravel-auditing). | ||
|
||
## Installation | ||
|
||
Simply install using composer. | ||
|
||
```bash | ||
|
||
composer require devpartners/auditable-log | ||
|
||
``` | ||
|
||
Then add the resource tool to a resource whose related model uses and implements the Laravel Auditable package. | ||
|
||
```php | ||
|
||
public function fields(Request $request) | ||
{ | ||
|
||
return [ | ||
Text::make('Name'), | ||
Text::make('E-mail'), | ||
|
||
// Shows audit log on detail view | ||
AuditableLog::make('Audit Log') | ||
]; | ||
|
||
} | ||
|
||
``` |