├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── config └── auth_tracker.php ├── database └── migrations │ └── 2019_09_01_000000_create_logins_table.php ├── phpunit.xml.dist ├── src ├── AuthTrackerServiceProvider.php ├── EloquentUserProviderExtended.php ├── Events │ ├── FailedApiCall.php │ ├── Login.php │ └── PersonalAccessTokenCreated.php ├── Exceptions │ ├── CustomIpProviderException.php │ └── IpProviderException.php ├── Factories │ ├── IpProviderFactory.php │ ├── LoginFactory.php │ └── ParserFactory.php ├── Interfaces │ ├── IpProvider.php │ └── UserAgentParser.php ├── IpProviders │ ├── Ip2LocationLite.php │ └── IpApi.php ├── Listeners │ ├── AuthEventSubscriber.php │ ├── PassportEventSubscriber.php │ └── SanctumEventSubscriber.php ├── Models │ └── Login.php ├── Parsers │ ├── Agent.php │ └── WhichBrowser.php ├── RequestContext.php ├── Scopes │ └── LoginsScope.php └── Traits │ ├── AuthTracking.php │ ├── MakesApiCalls.php │ └── ManagesLogins.php └── tests ├── PassportTest.php ├── PassportUser.php ├── SessionTest.php ├── TestCase.php ├── User.php └── database ├── factories ├── PassportUserFactory.php ├── SanctumUserFactory.php └── UserFactory.php └── migrations └── 2020_02_17_115833_create_passport_users_table.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/composer.json -------------------------------------------------------------------------------- /config/auth_tracker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/config/auth_tracker.php -------------------------------------------------------------------------------- /database/migrations/2019_09_01_000000_create_logins_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/database/migrations/2019_09_01_000000_create_logins_table.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/AuthTrackerServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/AuthTrackerServiceProvider.php -------------------------------------------------------------------------------- /src/EloquentUserProviderExtended.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/EloquentUserProviderExtended.php -------------------------------------------------------------------------------- /src/Events/FailedApiCall.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Events/FailedApiCall.php -------------------------------------------------------------------------------- /src/Events/Login.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Events/Login.php -------------------------------------------------------------------------------- /src/Events/PersonalAccessTokenCreated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Events/PersonalAccessTokenCreated.php -------------------------------------------------------------------------------- /src/Exceptions/CustomIpProviderException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Exceptions/CustomIpProviderException.php -------------------------------------------------------------------------------- /src/Exceptions/IpProviderException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Exceptions/IpProviderException.php -------------------------------------------------------------------------------- /src/Factories/IpProviderFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Factories/IpProviderFactory.php -------------------------------------------------------------------------------- /src/Factories/LoginFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Factories/LoginFactory.php -------------------------------------------------------------------------------- /src/Factories/ParserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Factories/ParserFactory.php -------------------------------------------------------------------------------- /src/Interfaces/IpProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Interfaces/IpProvider.php -------------------------------------------------------------------------------- /src/Interfaces/UserAgentParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Interfaces/UserAgentParser.php -------------------------------------------------------------------------------- /src/IpProviders/Ip2LocationLite.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/IpProviders/Ip2LocationLite.php -------------------------------------------------------------------------------- /src/IpProviders/IpApi.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/IpProviders/IpApi.php -------------------------------------------------------------------------------- /src/Listeners/AuthEventSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Listeners/AuthEventSubscriber.php -------------------------------------------------------------------------------- /src/Listeners/PassportEventSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Listeners/PassportEventSubscriber.php -------------------------------------------------------------------------------- /src/Listeners/SanctumEventSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Listeners/SanctumEventSubscriber.php -------------------------------------------------------------------------------- /src/Models/Login.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Models/Login.php -------------------------------------------------------------------------------- /src/Parsers/Agent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Parsers/Agent.php -------------------------------------------------------------------------------- /src/Parsers/WhichBrowser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Parsers/WhichBrowser.php -------------------------------------------------------------------------------- /src/RequestContext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/RequestContext.php -------------------------------------------------------------------------------- /src/Scopes/LoginsScope.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Scopes/LoginsScope.php -------------------------------------------------------------------------------- /src/Traits/AuthTracking.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Traits/AuthTracking.php -------------------------------------------------------------------------------- /src/Traits/MakesApiCalls.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Traits/MakesApiCalls.php -------------------------------------------------------------------------------- /src/Traits/ManagesLogins.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/src/Traits/ManagesLogins.php -------------------------------------------------------------------------------- /tests/PassportTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/PassportTest.php -------------------------------------------------------------------------------- /tests/PassportUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/PassportUser.php -------------------------------------------------------------------------------- /tests/SessionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/SessionTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/User.php -------------------------------------------------------------------------------- /tests/database/factories/PassportUserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/database/factories/PassportUserFactory.php -------------------------------------------------------------------------------- /tests/database/factories/SanctumUserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/database/factories/SanctumUserFactory.php -------------------------------------------------------------------------------- /tests/database/factories/UserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/database/factories/UserFactory.php -------------------------------------------------------------------------------- /tests/database/migrations/2020_02_17_115833_create_passport_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alajusticia/laravel-auth-tracker/HEAD/tests/database/migrations/2020_02_17_115833_create_passport_users_table.php --------------------------------------------------------------------------------