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
- This release completely revamps the ServiceProvider that ships with this package. Along with that comes new commands for publishing assets (refer to the readme file for details).
28
+
- Added config option to change the default auth_logs table name.
29
+
- Added much-needed Slack customization option and improvements.
30
+
31
+
## 1.1.1 - 2021-03-06
32
+
33
+
- Added Icons for User Devices.
34
+
35
+
## 1.1.0 - 2021-02-25
36
+
37
+
- Adding Support for Laravel's logoutOtherDevices Method.
Copy file name to clipboardExpand all lines: README.md
+11-18Lines changed: 11 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -10,35 +10,24 @@ Laravel Auth Logger stores user authentication logs and sends out notifications
10
10
11
11
## Installation
12
12
13
-
> Laravel Auth Logger requires PHP 7.0+ and currently supports Laravel 7, 8.
13
+
> Laravel Auth Logger requires PHP 7.0+ and currently supports Laravel 7, 8 & 9.
14
14
15
15
You can install the package via composer:
16
16
17
17
```bash
18
18
composer require spargon/laravel-auth-logger
19
19
```
20
20
21
-
After installing the Laravel-Auth-Logger package, you need to publish the `auth-logger` config file using the artisan command below in your console:
21
+
After installing the **Laravel-Auth-Logger** package, you need run the install command which will take care of everything you need to get started. Type the following artisan command in your console:
If you want to change the name of the auth-logger table, you can do so by changing the vaule of `table_name` in the `config/auth-logger.php` file (this step is optional).
34
-
35
-
After that you need to migrate the recently published file to your database using the artisan command below (this will create a new table in your database for your app to use).
36
-
37
-
```bash
38
-
php artisan migrate
39
-
```
40
-
41
-
Lastly, you need to add the **`AuthLogable`** and **`Notifiable`** traits to your authenticatable model (by default its, `App\Models\User` model). These traits provides you with various methods to get the data generated by the auth logger, such as last login time, last login IP address, and sets the channels to notify the user when they login from a new device:
30
+
Once installed, you need to add the **`AuthLogable`** and **`Notifiable`** traits to your authenticatable model (by default its, `App\Models\User` model). These traits provides you with various methods to get the data generated by the auth logger, such as last login time, last login IP address, and sets the channels to notify the user when they login from a new device:
*These are optional files. You don't need to publish them for the package to work. They exist only for cases where you want to make any changes to the files yourself.*
161
150
151
+
#### Change Database Table Name
152
+
153
+
If you want to change the name of the auth-logger table, you can do so by changing the vaule of `table_name` in the `config/auth-logger.php` file (this step is optional - you must also update the table name in the migrations/database to reflect the same).
154
+
162
155
## Experimental (dev-geoip)
163
156
164
157
Currently we are experimenting with an implention of Location Tagging (using GeoIP package from Torann). You can checkout the `geoip` branch to play around with it or get the dev-geoip release from packagist using `composer require spargon/laravel-auth-logger:dev-geoip`
165
158
166
-
*This is an experimental release of location tagging. Accuracy is not 100% guaranteed. Use it at your own risk.*
159
+
*This is an experimental release of location tagging. Accuracy is not 100% guaranteed. Use it at your own risk. PS> This experimental version does not contain the install command.*
0 commit comments