https://github.com/skycoder026/user-log
A package that store user log
https://github.com/skycoder026/user-log
Last synced: 5 months ago
JSON representation
A package that store user log
- Host: GitHub
- URL: https://github.com/skycoder026/user-log
- Owner: skycoder026
- Created: 2021-12-09T18:06:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-10T17:41:24.000Z (over 4 years ago)
- Last Synced: 2024-04-20T14:59:22.620Z (about 2 years ago)
- Language: PHP
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Description [](http://travis-ci.org/jeresig/jquery.hotkeys)
**User Log** is a small package, that can help you to stored log of created, updated and approved user and also store auth user company.
This is a small package to easy and simplify your code.
## Installation Process
```bash
composer require skycoder/user-log
```
## Publish View
```php artisan vendor:publish``` press the number which hold `user-log`
## Uses
You should use `use UserLog;` trait to your model which contain `use Skycoder\UserLog\UserLog;` namespace
And also use `@include('user-log::user-logs', ['data' => $item])` to your table where you display your data. here $item is your model data.
## Example for Model
```php
Name
Mobile
Email
Action
@foreach ($items as $item)
{{ $item->name }}
{{ $item->mobile }}
{{ $item->email }}
@include('user-log::user-logs', ['data' => $item])
@endforeach
```
## Result/Output
