Giter Site home page Giter Site logo

filament-authentication-log's Introduction

Filament Authentication Log

Latest Version on Packagist Code Style Action Status - Pint Total Downloads

A Filament plugin for Laravel Authentication Log package.

This package provides a Filament resource and a relation manager for Laravel Authentication Log.

Requirements

Dependencies

Version Compatibility

Filament Laravel Filament Authentication Log
2.x 9.x/10.x 2.x
3.x 10.x/11.x 3.0.x/3.1.x

Installation

You can install the plugin via Composer:

composer require tapp/filament-authentication-log:"^3.1"

Follow the configuration instruction for laravel-authentication-log

  • Publish and run the migrations
  • Add the AuthenticationLoggable and Notifiable traits to your User model

Note For Filament 2.x check the 2.x branch

You can publish the translations files with:

php artisan vendor:publish --tag="filament-authentication-log-translations"

You can publish the config file with:

php artisan vendor:publish --tag="filament-authentication-log-config"

Using the Resource

Add this plugin to a panel on plugins() method. E.g. in app/Providers/Filament/AdminPanelProvider.php:

use Tapp\FilamentAuthenticationLog\FilamentAuthenticationLogPlugin;
 
public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentAuthenticationLogPlugin::make(),
            //...
        ]);
}

That's it! Now you can see the Authentication Log resource on left sidebar.

Resource appearance

Filament Authentication Log Resource

Filament Authentication Log Resource with filters and tooltip

Using the Relation Manager

Add the Tapp\FilamentAuthenticationLog\RelationManagers\ to the getRelations() method on the Filament resource where the model uses the AuthenticationLoggable trait.

E.g. in App\Filament\Resources\UserResource.php:

use Tapp\FilamentAuthenticationLog\RelationManagers\AuthenticationLogsRelationManager;
 
public static function getRelations(): array
{
    return [
        AuthenticationLogsRelationManager::class,
        // ...
    ];
}

Relation manager appearance

Filament Authentication Log Relation Manager

filament-authentication-log's People

Contributors

andreia avatar howdu avatar mrailton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.