Skip to content

Commit

Permalink
Merge pull request #776 from mvdnbrk/fix-formatiing
Browse files Browse the repository at this point in the history
Fix formatting of README.md
  • Loading branch information
rubenvanassche authored Sep 9, 2020
2 parents d86017b + 01b1529 commit 9d2da4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/spatie/laravel-activitylog/run-tests?label=tests)
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-activitylog.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-activitylog)

The `spatie/laravel-activitylog` package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events.
The `spatie/laravel-activitylog` package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events.
The Package stores all activity in the `activity_log` table.

Here's a demo of how you can use it:
Expand All @@ -26,7 +26,7 @@ activity()
->causedBy($user)
->withProperties(['customProperty' => 'customValue'])
->log('Look, I logged something');

$lastLoggedActivity = Activity::all()->last();

$lastLoggedActivity->subject; //returns an instance of an eloquent model
Expand Down

0 comments on commit 9d2da4d

Please sign in to comment.