承接 niharb/my-form 相关项目开发

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

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

niharb/my-form

Composer 安装命令:

composer require niharb/my-form

包简介

A Laravel package with registartion and login form with database migration and seeder

README 文档

README

A Laravel package for form management with built-in user authentication.

Installation

Follow these steps to install and configure the package:

1. Install via Composer

composer require niharb/my-form:@dev

2. Run Migrations

php artisan migrate
Now you have table named Paackage user table with these data 
=> Now you have 1 User =
    'username' => 'adminuser',
    'email' => 'admin@example.com',
    'password' => 'secret'

3. Update Auth Configuration

Modify your config/auth.php file with these settings:

'providers' => [
    'package_users' => [
        'driver' => 'eloquent',
        'model' => Niharb\MyForm\Models\PackageUser::class,
    ],
],

'guards' => [
    'package_web' => [
        'driver' => 'session',
        'provider' => 'package_users',
    ],
    
    'api' => [
        'driver' => 'token',
        'provider' => 'users',
        'hash' => false,
    ],
],

4. Routes

Now you can see your Forms in

   Registration = /my-form/register
   Login = /my-form/login

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-22