An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Description [![Build Status](https://secure.travis-ci.org/jeresig/jquery.hotkeys.png)](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
![Output Image](https://github.com/skycoder026/user-log/blob/master/screenshot.PNG)