# Laravel Auth Log

![Package Logo](https://banners.beyondco.de/Laravel%20Authentication%20Log.png?theme=dark\&packageManager=composer+require\&packageName=rappasoft%2Flaravel-authentication-log\&pattern=hideout\&style=style_1\&description=Log+user+authentication+details+and+send+new+device+notifications.\&md=1\&showWatermark=0\&fontSize=100px\&images=lock-closed)

### Installation

You can install the package via composer:

```bash
composer require rappasoft/laravel-authentication-log
```

If you want the location features you must also install `torann/geoip`:

```bash
composer require torann/geoip
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --provider="Rappasoft\LaravelAuthenticationLog\LaravelAuthenticationLogServiceProvider" --tag="authentication-log-migrations"
php artisan migrate
```

You can publish the view/email files with:

```bash
php artisan vendor:publish --provider="Rappasoft\LaravelAuthenticationLog\LaravelAuthenticationLogServiceProvider" --tag="authentication-log-views"
```

You can publish the config file with:

```bash
php artisan vendor:publish --provider="Rappasoft\LaravelAuthenticationLog\LaravelAuthenticationLogServiceProvider" --tag="authentication-log-config"
```

If you installed `torann/geoip` you should also publish that config file to set your defaults:

```
php artisan vendor:publish --provider="Torann\GeoIP\GeoIPServiceProvider" --tag=config
```

## Learn More

{% embed url="https://github.com/rappasoft/laravel-authentication-log" %}
