承接 markjtaps/login 相关项目开发

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

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

markjtaps/login

Composer 安装命令:

composer require markjtaps/login

包简介

A Laravel 11 package that displays a SweetAlert welcome message on user login.

README 文档

README

A simple Laravel 11 package that displays a SweetAlert welcome message whenever a user logs in.

Installation

Install the package via Composer (local development):

composer require markjtaps/login:@dev --prefer-source


## Setup

Follow these steps to set up the package in your Laravel 11 application:

1. Register Middleware

Add the middleware to your app/Http/Kernel.php file in the web group:

```bash
protected $middlewareGroups = [
    'web' => [
        // ...
        \Markjtaps\Login\Http\Middleware\LoginAlertMiddleware::class,
    ],
];


This middleware sets a session variable with the user’s name on login.

## 2. Include Blade Directive**

Include the Blade directive in your main layout (e.g., resources/views/layouts/app.blade.php):

```bash
@loginAlert


This directive renders the SweetAlert script whenever a user logs in.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-10