LaravelPackages.net
Acme Inc.
Toggle sidebar
modernben/track_logins

A package to quickly add on a login log

6
0
v0.1.1
About modernben/track_logins

modernben/track_logins is a Laravel package for a package to quickly add on a login log. It currently has 0 GitHub stars and 6 downloads on Packagist (latest version v0.1.1). Install it with composer require modernben/track_logins. Discover more Laravel packages by modernben or browse all Laravel packages to compare alternatives.

Last updated

A package to quickly add on a login log

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require modernben/track_logins

You can publish and run the migrations with:

php artisan vendor:publish --provider="Modernben\TrackLogins\TrackLoginsServiceProvider" --tag="track_logins-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Modernben\TrackLogins\TrackLoginsServiceProvider" --tag="track_logins-config"

This is the contents of the published config file:

return [

    /**
     * This value sets the name of the table you would like
     * to store the logins on.
     */
    'table' => env('MODERNBEN_LOGIN_TABLE', 'last_logins'),
];

Usage

Add the Modernben\Traits\TrackLogins trait to your user model and that's it! This works by hooking into the Login event thrown by Laravel.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments