PHPackages                             deixtra/laravel-starter-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. deixtra/laravel-starter-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

deixtra/laravel-starter-auth
============================

Laravel 13 auth scaffold with views, models, migrations, controllers, middleware and password reset

v1.0.1(1mo ago)21↑2900%MITPHPPHP ^8.3

Since Apr 5Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/Deixtra-Private-Limited/laravel-starter-auth)[ Packagist](https://packagist.org/packages/deixtra/laravel-starter-auth)[ Docs](https://deixtra.com)[ RSS](/packages/deixtra-laravel-starter-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

deixtra/laravel-starter-auth
============================

[](#deixtralaravel-starter-auth)

[![License: MIT](https://camo.githubusercontent.com/e9f356b8051ecbbe01b65a70ff4c1ad63d9ef2ca3cb465b6f2ad1bafb1080bb4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d707572706c652e737667)](https://opensource.org/licenses/MIT)[![Packagist Version](https://camo.githubusercontent.com/d9b87fc52f3141e4834db8c957a4e81776b7a93e758e6f2cb2961a66be4204bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646569787472612f6c61726176656c2d737461727465722d617574682e737667)](https://packagist.org/packages/deixtra/laravel-starter-auth)[![Total Downloads](https://camo.githubusercontent.com/abef2fd9fe2bf868c1228186a1963fa632a9fbc2dfcc37c1716a3fe5f5a52531/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646569787472612f6c61726176656c2d737461727465722d617574682e737667)](https://packagist.org/packages/deixtra/laravel-starter-auth)[![PHP Version](https://camo.githubusercontent.com/89899a77bdce65fc4c3d3423dfacff9c6461066a0b5354dc18d7721c23ba596e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75652e737667)](https://www.php.net)[![Laravel](https://camo.githubusercontent.com/379ac210c7e2644180ddc1fb0ce39d8af7c51fdb8715c59570c4cf0da3403aa5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31332e782d7265642e737667)](https://laravel.com)

A production-ready Laravel 13 authentication scaffold with beautiful Tailwind CSS views, full password reset flow, middleware, migrations, controllers, and an interactive installer — set up in seconds.

---

Features
--------

[](#features)

- 🔐 **Full auth flow** — Login, Register, Logout, Forgot Password, Reset Password
- ⚡ **Interactive installer** — `php artisan auth-starter:install` guides you through every step
- 🎨 **Beautiful Tailwind CSS views** — Deep purple theme, ready to customize
- 🛡️ **Middleware included** — Auto-registered in `bootstrap/app.php`
- 📋 **Migrations included** — `users` &amp; `password_reset_tokens` tables
- 🔑 **Flexible User model** — Use your existing `App\Models\User` or scaffold a new one
- ⚙️ **Custom naming** — Choose your own controller, middleware, routes file &amp; views directory name
- 🌐 **Route prefix support** — Namespace all routes under `/auth/*` or any custom prefix
- ✅ **Zero config required** — Works out of the box with sensible defaults
- 📦 **Laravel 13 ready** — Built with PHP 8.3+ and Laravel 13 conventions

---

Requirements
------------

[](#requirements)

DependencyVersionPHP^8.3Laravel^13.0---

Installation
------------

[](#installation)

```
composer require deixtra/laravel-starter-auth
```

The service provider is auto-discovered — no manual registration needed.

---

Setup
-----

[](#setup)

Run the interactive installer:

```
php artisan auth-starter:install
```

The installer will ask you:

1. **User model** — Use existing `App\Models\User` or create a new one
2. **Controller name** — Custom name for the auth controller
3. **Middleware name** — Custom name for the middleware
4. **Routes file name** — Custom name for the routes file
5. **Views location** — Where to publish the views
6. **Migrations** — Run migrations now or skip
7. **Route prefix** — Optional prefix e.g. `auth` → `/auth/login`

Use `--force` to overwrite already-published files:

```
php artisan auth-starter:install --force
```

---

Configuration
-------------

[](#configuration)

After installation, edit `config/auth-starter.php`:

```
return [
    // URL prefix for all auth routes. '' = /login, 'auth' = /auth/login
    'route_prefix' => env('AUTH_STARTER_PREFIX', ''),

    // Redirect here after login/registration
    'home' => '/dashboard',

    // Set false to disable registration entirely
    'registration_enabled' => true,

    // true = App\Models\User, false = package's own User model
    'use_existing_user_model' => true,

    // Published file names (set automatically by installer)
    'controller_name' => 'AuthController',
    'middleware_name'  => 'auth.starter',
    'routes_file'      => 'auth',
    'views_path'       => 'auth-starter',
];
```

Via `.env`:

```
AUTH_STARTER_PREFIX=auth
```

---

Routes
------

[](#routes)

All routes are prefixed with `auth-starter.` for named route access.

MethodURINameMiddlewareGET`/login``auth-starter.login`guestPOST`/login`—guestGET`/register``auth-starter.register`guestPOST`/register`—guestGET`/forgot-password``auth-starter.password.request`guestPOST`/forgot-password``auth-starter.password.email`guestGET`/reset-password/{token}``auth-starter.password.reset`guestPOST`/reset-password``auth-starter.password.update`guestGET`/dashboard``auth-starter.dashboard`authPOST`/logout``auth-starter.logout`auth> Dashboard &amp; logout have **no prefix** — always at `/dashboard` and `/logout`.

Use named routes in Blade:

```
Login
Dashboard
```

---

Middleware
----------

[](#middleware)

The package includes `RedirectIfAuthenticated` middleware. The installer auto-injects the alias into `bootstrap/app.php`.

If auto-injection fails, add it manually:

```
// bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
    $middleware->alias([
        'auth.starter' => \Deixtra\LaravelStarterAuth\Http\Middleware\RedirectIfAuthenticated::class,
    ]);
})
```

---

Customizing Views
-----------------

[](#customizing-views)

Publish views to your application:

```
php artisan vendor:publish --tag=auth-starter-views
```

Published to `resources/views/vendor/auth-starter/` — edit freely, package uses your copies over defaults.

### View structure

[](#view-structure)

```
resources/views/vendor/auth-starter/
├── layouts/
│   └── app.blade.php
├── auth/
│   ├── login.blade.php
│   ├── register.blade.php
│   ├── forgot-password.blade.php
│   └── reset-password.blade.php
└── dashboard.blade.php

```

---

Publishing Individual Assets
----------------------------

[](#publishing-individual-assets)

```
# Config only
php artisan vendor:publish --tag=auth-starter-config

# Migrations only
php artisan vendor:publish --tag=auth-starter-migrations

# Views only
php artisan vendor:publish --tag=auth-starter-views

# Controllers only
php artisan vendor:publish --tag=auth-starter-controllers

# Middleware only
php artisan vendor:publish --tag=auth-starter-middleware
```

---

License
-------

[](#license)

MIT License — see [LICENSE](LICENSE) for details.

---

Credits
-------

[](#credits)

Built with ❤️ by [Deixtra Private Limited](https://deixtra.com)

🌐 Website[deixtra.com](https://deixtra.com)📧 Email🐙 GitHub[Deixtra-Private-Limited](https://github.com/Deixtra-Private-Limited/laravel-starter-auth)📦 Packagist[deixtra/laravel-starter-auth](https://packagist.org/packages/deixtra/laravel-starter-auth)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/273714503?v=4)[Deixtra](/maintainers/deixtrapvtltd)[@deixtrapvtltd](https://github.com/deixtrapvtltd)

---

Top Contributors

[![deixtrapvtltd](https://avatars.githubusercontent.com/u/273714503?v=4)](https://github.com/deixtrapvtltd "deixtrapvtltd (1 commits)")[![thedevabdul](https://avatars.githubusercontent.com/u/122205092?v=4)](https://github.com/thedevabdul "thedevabdul (1 commits)")

---

Tags

authauth-scaffoldingauthenticationcomposer-packagelaravellaravel-13laravel-authlaravel-packagelaravel-scaffoldpackagistphpstarter-kitlaravelauthstarterpassword-resetdeixtra

### Embed Badge

![Health badge](/badges/deixtra-laravel-starter-auth/health.svg)

```
[![Health](https://phpackages.com/badges/deixtra-laravel-starter-auth/health.svg)](https://phpackages.com/packages/deixtra-laravel-starter-auth)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

264763.5k1](/packages/codegreencreative-laravel-samlidp)[pallant/laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools

777.7k](/packages/pallant-laravel-aws-cognito-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
