承接 misaf/laravel-authify-log 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

misaf/laravel-authify-log

最新稳定版本:1.0.1

Composer 安装命令:

composer require misaf/laravel-authify-log

包简介

A logging utility for user authentication activities in Laravel.

README 文档

README

A logging utility for user authentication activities in Laravel.

Features

  • Log all user authentication events (login, logout, failed attempts, password resets, etc.).
  • Includes user metadata such as IP address, browser, and location.
  • Supports Blade Country Flags to display user origin.
  • Easy to integrate into any Laravel 10+ application.
  • Fully configurable via Laravel service provider.
  • Built with Spatie Laravel Package Tools for easy package management.

Requirements

  • PHP ^8.3
  • Laravel 10+
  • Dependencies:
    • stijnvanouplines/blade-country-flags ^1.0.6
    • spatie/laravel-package-tools ^1.92.4

Installation

Install via Composer:

composer require misaf/laravel-authify-log
Usage
Publish the service provider (optional for customization):

bash
Copy code
php artisan vendor:publish --provider="Misaf\LaravelAuthifyLog\Providers\AuthifyLogServiceProvider"
Log authentication events automatically:

The package hooks into Laravel’s authentication events by default:

Login → Logged automatically

Logout → Logged automatically

Failed login attempts → Logged automatically

Password resets → Logged automatically

Optional: Display user location with flags:

In Blade views, you can use country flags:

blade
Copy code
@countryFlag($user->country_code)
Database Factories & Seeders:

You can use the included factories and seeders for testing:

bash
Copy code
php artisan db:seed --class=Misaf\\AuthifyLog\\Database\\Seeders\\AuthifyLogSeeder
Testing
If you have tests in the tests/ folder, run them using:

bash
Copy code
composer test
(You may need Pest or PHPUnit configured depending on your setup.)

Contributing
Contributions, issues, and feature requests are welcome!
Feel free to fork the repository and submit pull requests.

License
This package is open-sourced under the MIT license.

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固