Skip to content

Commit

Permalink
Update README.md (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
godwillcodes authored Aug 26, 2023
1 parent f21c24f commit 919cfcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ composer require bolechen/nova-activitylog
```

You can publish the migration with:

```bash
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
```

*Note*: The default migration assumes you are using integers for your model IDs. If you are using UUIDs, or some other format, adjust the format of the subject_id and causer_id fields in the published migration before continuing.
Expand Down Expand Up @@ -65,7 +66,7 @@ public function tools()
}
```

Because backend we use the `spatie/laravel-activitylog` package, you need to do is let your model use the `Spatie\Activitylog\Traits\LogsActivity` trait.
Because the backend uses the `spatie/laravel-activitylog` package, you need to let your model use the `Spatie\Activitylog\Traits\LogsActivity` trait.

Here's an example:

Expand Down

0 comments on commit 919cfcd

Please sign in to comment.