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
> Remember to run the `php artisan config:cache` command
56
56
57
+
## Add `AuthLoggable` trait to `User` model
58
+
59
+
Use `Biscolab\LaravelAuthLog\Traits\AuthLoggable` in `App\User`
60
+
61
+
```php
62
+
<?php
63
+
64
+
namespace App;
65
+
66
+
// .....
67
+
68
+
use Biscolab\LaravelAuthLog\Traits\AuthLoggable;
69
+
70
+
class User extends Authenticatable
71
+
{
72
+
use AuthLoggable;
73
+
74
+
// other traits
75
+
// ......
76
+
77
+
```
78
+
57
79
## Database
58
80
81
+
> Your users' table id MUST be either of type `unsignedInteger` or `unsignedBigInteger`. If you have a custom users' table edit `datatbase/migratons/2019_09_19_000000_create_authlog_table.php` after `vendor:publish` artisan command
0 commit comments