Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Log activity inside your Laravel app
| Date | Stars |
|---|---|
| 2026-07-24 | 5869 |
| 2026-07-25 | 5870 |
| 2026-07-28 | 5870 |
| 2026-07-30 | 5870 |
| 2026-08-06 | 5870 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<div align="left">
<a href="https://spatie.be/open-source?utm_source=github&utm_medium=banner&utm_campaign=laravel-activitylog">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://spatie.be/packages/header/laravel-activitylog/html/dark.webp">
<img alt="Logo for laravel-activitylog" src="https://spatie.be/packages/header/laravel-activitylog/html/light.webp">
</picture>
</a>
<h1>Log activity inside your Laravel app</h1>
[](https://packagist.org/packages/spatie/laravel-activitylog)
[](https://github.com/spatie/laravel-activitylog/actions/workflows/run-tests.yml)
[](https://github.com/spatie/laravel-activitylog/actions/workflows/php-cs-fixer.yml)
[](https://packagist.org/packages/spatie/laravel-activitylog)
</div>
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:
```php
activity()->log('Look, I logged something');
```
You can retrieve all activity using the `Spatie\Activitylog\Models\Activity` model.
```php
Activity::all();
```
Here's a more advanced example:
```php
activity()
->performedOn($anEloquentModel)
->causedBy($user)
->withProperties(['customProperty' => 'customValue'])
->log('Look, I logged something');
$lastLoggedActivity = Activity::all()->last();
$lastLoggedActivity->subject; //returns an instance of an eloquent model
$lastLoggedActivity->causer; //returns an instance of your user model
$lastLoggedActivity->getProperty('customProperty'); //returns 'customValue'
$lastLoggedActivity->description; //returns 'Look, I logged something'
```
Here's an example on [event logging](https://spatie.be/docs/laravel-activitylog/advanced-usage/logging-model-events).
```php
$newsItem->name = 'updated name';
$newsItem->save();
//updating the newsItem will cause the logging of an activity
$activity = Activity::all()->last();
$activity->description; //returns 'updated'
$activity->subject; //returns the instance of NewsItem that was saved
```
Calling `$activity->attribute_changes` will return this collection:
```php
[
'attributes' => [
'name' => 'updated name',
'text' => 'Lorem',
],
'old' => [
'name' => 'original name',
'text' => 'Lorem',
],
];
```
## Support us
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-activitylog.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-activitylog)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Documentation
You'll find the documentation on [https://spatie.be/docs/laravel-activitylog/introduction](https://spatie.be/docs/laravel-activitylog/introduction).
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the activity log? Feel free to [create an issue on GitHub](https://github.com/spatie/laravel-activitylog/issues), we'll try to address it as soon as possible.
Excerpt of 5,822 characters
Read on GitHubTom Herrmann · @smartbnb & @Astrotomic · Germany
286
Freek Van der Herten · @spatie · Belgium
263
35
Alex Vanderbist · @spatie · Belgium
25
24
Steve Bauman · Canada
14
13
11
Niels Vanpachtenbeke · @Diagonal-HQ · Belgium
11
Reece May · South Africa
10
Laravel Shift · Laravel Shift
10
8
Adriaan Marain · Belgium
7
7
Patrick Organ · @permafrost-dev · United States
6
Mau
6
4
Roj Vroemen · Roj Vroemen @rojvroemen · Netherlands
4
Sebastian De Deyne · @spatie · Belgium
4
4
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:9622f0e03bc934ce, topic:monitoring