PHPackages                             sun/laravel-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. sun/laravel-auth

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

sun/laravel-auth
================

The Sun Auth package helps you to protect your application from Unauthorized user.

v1.0(10y ago)11441MITCSSPHP &gt;=5.4.0

Since Jul 16Pushed 10y ago3 watchersCompare

[ Source](https://github.com/IftekherSunny/Laravel-Auth)[ Packagist](https://packagist.org/packages/sun/laravel-auth)[ RSS](/packages/sun-laravel-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Sun Auth
--------

[](#sun-auth)

[![Total Downloads](https://camo.githubusercontent.com/8efd355f569cb72762357c865388850a75f1e92c50fb108c97f4d81ea492cba4/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d617574682f646f776e6c6f616473)](https://packagist.org/packages/sun/laravel-auth) [![Latest Stable Version](https://camo.githubusercontent.com/c72199476132fb79ced69fb98e10e11ed695b3ff9344914059d7c079dcff6e95/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d617574682f762f737461626c65)](https://packagist.org/packages/sun/laravel-auth) [![Latest Unstable Version](https://camo.githubusercontent.com/1ad1a690338e0223d4642769deca6c85e9133cd3a868be2d5d82b132fc771491/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d617574682f762f756e737461626c65)](https://packagist.org/packages/sun/laravel-auth) [![License](https://camo.githubusercontent.com/5c874b3608fc2aba659fac988d9961fbe0a35192cd8e12613d8e2c424d8e5391/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d617574682f6c6963656e7365)](https://packagist.org/packages/sun/laravel-auth)

The Sun Auth package helps you to protect your application from Unauthorized user.

Installation Process
--------------------

[](#installation-process)

In order to install Sun Auth, just add

```
 "sun/laravel-auth": "1.*"

```

to your composer.json. Then run composer install or composer update.

Then in your config/app.php add

```
 Sun\Auth\AuthServiceProvider::class,

```

in the providers array.

In the config/session.php 'expire\_on\_close' set to true.

```
 'expire_on_close' => true,

```

You need three extra column in your users table for this package.

```
$table->string('tempPassword', 60);
$table->boolean('active');
$table->string('code', 32);

```

add this 3 lines of code in your users migration file. Then, run

```
php artisan migrate:refresh

```

Then publish Sun Auth's assets with

```
php artisan vendor:publish

```

This command will publish all of the assets, views and config files.

#### Changing Sun Auth Default Configuration

[](#changing-sun-auth-default-configuration)

You can also change Sun Auth default configuration. In the config/SunAuth.php setup your application name, url, favicon link, User model namespace.

```
return [
    'app'  => [
        'name' => 'My Awesome App',
        'url'   => 'http://localhost:8000',
        'favicon-url' => 'http://myawesomeapp.com/favicon.png'
    ],
    'user-model-namespace'  => 'App\User',
    'redirect-after-login'  => '/'
];
```

Screenshots
-----------

[](#screenshots)

###### Login:

[](#login)

[![Login](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/1.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/1.png)

###### Register:

[](#register)

[![Register](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/2.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/2.png)

###### Register Success:

[](#register-success)

[![Register Success](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/3.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/3.png)

###### Confirmation Email:

[](#confirmation-email)

[![Confirmation Email](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/4.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/4.png)

###### Password Reset:

[](#password-reset)

[![Password Reset](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/5.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/5.png)

###### New Password Confirmation Email:

[](#new-password-confirmation-email)

[![New Password Confirmation Email](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Auth/6.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Auth/6.png)

License
-------

[](#license)

This package is licensed under the [MIT License](https://github.com/IftekherSunny/laravel-auth/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d233b865d7b1e1b86271e3bc70ddd077e1c01e4a83124e020fa39199c4af15a?d=identicon)[IftekherSunny](/maintainers/IftekherSunny)

---

Top Contributors

[![IftekherSunny](https://avatars.githubusercontent.com/u/8013399?v=4)](https://github.com/IftekherSunny "IftekherSunny (1 commits)")

---

Tags

laravelauthloginregistrationflashsunLaravel Authauth package

### Embed Badge

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

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

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[cesargb/laravel-magiclink

Create secure link for access to private data or login in Laravel without password

4571.3M](/packages/cesargb-laravel-magiclink)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)[teresko/palladium

User authentication and registration component

4414.2k](/packages/teresko-palladium)[mad-web/laravel-social-auth

Easy social auth integration with a lot of available providers

516.7k](/packages/mad-web-laravel-social-auth)[hydrat-agency/laravel-2fa

This package allow you to enable two-factor authentication in your Laravel applications. It stores tokens locally and notify users about their token via mail, SMS or any custom channel. Includes native conditionnal check to trigger or not 2FA, using known devices, IP addresses or IP locations.

1616.4k](/packages/hydrat-agency-laravel-2fa)

PHPackages © 2026

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