| Package Data | |
|---|---|
| Maintainer Username: | andrewboy |
| Maintainer Contact: | andras.jozsef.beck@gmail.com (Beck András) |
| Package Create Date: | 2015-07-15 |
| Package Last Update: | 2015-10-01 |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-11-07 15:00:58 |
| Package Statistics | |
|---|---|
| Total Downloads: | 936 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
This is a Laravel 5 package, that can log Model history.
It's under development, not recommended for production use!
add bundle to composer:
"andrewboy/historylog": "dev-master"
run composer:
composer install / update
add service provider to the providers list:
'Andrewboy\HistoryLog\HistoryLogServiceProvider'
publish config and migration:
php artisan vendor:publish --provider="Andrewboy\HistoryLog\HistoryLogServiceProvider"
run migration:
php artisan migrate
use Andrewboy\HistoryLog\Traits\HistoryLogTrait;
trait MyHistoryLogTrait{
use HistoryLogTrait;
/**
* Get the logged users' ID
* @return integer | null On success user ID
*/
public function getUserId()
{
...
}
}
use App\Traits\MyHistoryLogTrait;
class MyModel extends Model
{
use MyHistoryLogTrait;
}