Skip to content

Commit d5a0ae1

Browse files
committed
Merge branch 'develop' into release/v0
* develop: Laravel 7 compatibility
2 parents f3ba5ff + 4d45ba0 commit d5a0ae1

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Laravel Auth-log
2-
User authentication log for Laravel 5 and 6.
2+
User authentication log for Laravel 5, 6 and 7.
33
This package allows you to log user's authentication and force its logout if necessary!
44

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+
59
## System requirements
610

711
Set `session.driver` value
812
> To use this package the only allowed values of `session.driver` are `file`, `database`, `redis` (at the moment).
913
10-
## Install`
14+
## Install
1115

1216
You can install the package via composer:
1317
```sh
@@ -44,6 +48,7 @@ Edit `config/authlog.php`
4448
| `enabled` | `bool` | If `true` the package is active and user's authentication will be logged | `true` |
4549
| `skip_ip` | `string` | A whitelist of IP addresses (CSV format) that, if recognized, disable the package | `''` |
4650
| `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` |
4752
| `authlog_model` | `string` | AuthLog class. You can change ìt **BUT** your custom class **MUST** implements `'Biscolab\LaravelAuthLog\Models\AuthLogInterface'` | `'Biscolab\LaravelAuthLog\Models\AuthLog'` |
4853
| `session_model` | `string` | Session class. You can change ìt **BUT** your custom class **MUST** implements `'Biscolab\LaravelAuthLog\Models\SessionInterface'` | `'Biscolab\LaravelAuthLog\Models\Session'` |
4954
| `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`
5459

5560
> Remember to run the `php artisan config:cache` command
5661
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+
5764
## Add `AuthLoggable` trait to `User` model
5865

5966
Use `Biscolab\LaravelAuthLog\Traits\AuthLoggable` in `App\User`

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "biscolab/laravel-authlog",
3-
"description": "User's authentication log package for Laravel 5 and 6",
4-
"version": "0.1.1",
3+
"description": "User's authentication log package for Laravel",
4+
"version": "0.2.0",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [
@@ -19,11 +19,11 @@
1919
],
2020
"require": {
2121
"php": "^7.1",
22-
"laravel/framework": "^5.5|^6.0"
22+
"laravel/framework": "^5.5|^6.0|^7.0"
2323
},
2424
"require-dev": {
25-
"orchestra/testbench": "~3.0",
26-
"phpunit/phpunit": "6.*|7.*"
25+
"orchestra/testbench": "3.0|4.*|5.*",
26+
"phpunit/phpunit": "6.*|7.*|8.*"
2727
},
2828
"autoload": {
2929
"psr-4": {

0 commit comments

Comments
 (0)