You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# Laravel Auth-log
2
-
User authentication log for Laravel 5and 6.
2
+
User authentication log for Laravel 5, 6 and 7.
3
3
This package allows you to log user's authentication and force its logout if necessary!
4
4
5
+
**This package is still unstable. Please report any bug`and documentation lack in order to fix that promptly**.
6
+
7
+
Thanks for your help.
8
+
5
9
## System requirements
6
10
7
11
Set `session.driver` value
8
12
> To use this package the only allowed values of `session.driver` are `file`, `database`, `redis` (at the moment).
9
13
10
-
## Install`
14
+
## Install
11
15
12
16
You can install the package via composer:
13
17
```sh
@@ -44,6 +48,7 @@ Edit `config/authlog.php`
44
48
|`enabled`|`bool`| If `true` the package is active and user's authentication will be logged |`true`|
45
49
|`skip_ip`|`string`| A whitelist of IP addresses (CSV format) that, if recognized, disable the package |`''`|
46
50
|`table_name`|`string`| The name of the AuthLog database table |`authlog`|
51
+
|`users_table_size`|`string`| Users table size in order to add foreign keys (`int` means INT, `big` means BIGINT). Since Laravel 5.8, value should be `big` (*) |`big`|
47
52
|`authlog_model`|`string`| AuthLog class. You can change ìt **BUT** your custom class **MUST** implements `'Biscolab\LaravelAuthLog\Models\AuthLogInterface'`|`'Biscolab\LaravelAuthLog\Models\AuthLog'`|
48
53
|`session_model`|`string`| Session class. You can change ìt **BUT** your custom class **MUST** implements `'Biscolab\LaravelAuthLog\Models\SessionInterface'`|`'Biscolab\LaravelAuthLog\Models\Session'`|
49
54
|`session_auth_log_id_key`|`string`| Session key used to store your AuthLog ID |`'auth_log_id'`|
@@ -54,6 +59,8 @@ Edit `config/authlog.php`
54
59
55
60
> Remember to run the `php artisan config:cache` command
56
61
62
+
> (*) If you are using a custom `users` table please edit `datatbase/migratons/2019_09_19_000000_create_authlog_table.php` after run `vendor:publish` artisan command and before run `migration` artisan command
63
+
57
64
## Add `AuthLoggable` trait to `User` model
58
65
59
66
Use `Biscolab\LaravelAuthLog\Traits\AuthLoggable` in `App\User`
0 commit comments