niharb/my-form

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

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Blade

Type:laravel-package

pkg:composer/niharb/my-form

dev-main 2025-07-26 04:37 UTC

This package is auto-updated.

Last update: 2025-12-26 05:33:12 UTC


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