mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
return [
|
||
|
// The database table name
|
||
|
// You can change this if the database keys get too long for your driver
|
||
|
'table_name' => 'authentication_log',
|
||
|
|
||
|
// The database connection where the authentication_log table resides. Leave empty to use the default
|
||
|
'db_connection' => null,
|
||
|
|
||
|
// The events the package listens for to log
|
||
|
'events' => [
|
||
|
'login' => \Illuminate\Auth\Events\Login::class,
|
||
|
'failed' => \Illuminate\Auth\Events\Failed::class,
|
||
|
'logout' => \Illuminate\Auth\Events\Logout::class,
|
||
|
'logout-other-devices' => \Illuminate\Auth\Events\OtherDeviceLogout::class,
|
||
|
],
|
||
|
|
||
|
'notifications' => [
|
||
|
'new-device' => [
|
||
|
// Send the NewDevice notification
|
||
|
'enabled' => env('NEW_DEVICE_NOTIFICATION', true),
|
||
|
|
||
|
// Use torann/geoip to attempt to get a location
|
||
|
'location' => true,
|
||
|
|
||
|
// The Notification class to send
|
||
|
'template' => \Rappasoft\LaravelAuthenticationLog\Notifications\NewDevice::class,
|
||
|
],
|
||
|
'failed-login' => [
|
||
|
// Send the FailedLogin notification
|
||
|
'enabled' => env('FAILED_LOGIN_NOTIFICATION', false),
|
||
|
|
||
|
// Use torann/geoip to attempt to get a location
|
||
|
'location' => true,
|
||
|
|
||
|
// The Notification class to send
|
||
|
'template' => \Rappasoft\LaravelAuthenticationLog\Notifications\FailedLogin::class,
|
||
|
],
|
||
|
],
|
||
|
|
||
|
// When the clean-up command is run, delete old logs greater than `purge` days
|
||
|
// Don't schedule the clean-up command if you want to keep logs forever.
|
||
|
'purge' => 365,
|
||
|
];
|