PHPackages                             5dmatweblogin/ajaxlogin - 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. 5dmatweblogin/ajaxlogin

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

5dmatweblogin/ajaxlogin
=======================

Ajax login for laravel ...

72.0k8[2 issues](https://github.com/zizohassan/laravel-ajax-login/issues)HTML

Since Feb 24Pushed 9y ago2 watchersCompare

[ Source](https://github.com/zizohassan/laravel-ajax-login)[ Packagist](https://packagist.org/packages/5dmatweblogin/ajaxlogin)[ RSS](/packages/5dmatweblogin-ajaxlogin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-ajax-login
==================

[](#laravel-ajax-login)

laravel ajax login row javascript

\#video [Video here](https://www.youtube.com/watch?v=YFLdBeuwlUQ&feature=youtu.be)

\#installtion add this command to terminal in linux or mac &amp; cmd on windows

```
composer require 5dmatweblogin/ajaxlogin:dev-master

```

\#Add provider open config/app.php add this line on providers array

```
AjaxLogin\AjaxLoginProvider\AjaxLoginProvider::class,

```

\#Authentication scaffolding add this line to terminal

```
php artisan make:auth

```

\#Publish Vendors not last step to add this line we write on login.blade.php &amp; app.blade.php &amp; logincontroller.php &amp; add new file on public path /public/AjaxLogin/AjaxLogin.js

```
php artisan vendor:publish --tag=5dmatweb --force

```

\#Start Now now start your project and enjoy login with ajax

```
php artisan serve

```

\#How to use we set for you every thing on login file and app layout file this is the basic

```
  AL = new Login({
            email:"email",
            password:"password",
            btn:"btn",
            url:"/login", ///where we post the form data
            successUrl:"/",/// url to redirect after login /home is the default
            mode:"toast" ///alert or toast
});
```

email =&gt; set the email id field
password =&gt; set the password id field
btn =&gt; set the submit button id field
url =&gt; the login post url it set by default to /login
successUrl =&gt; the url we will redirect user after success login By default we rediret to home page
mode =&gt; the error way to show we have to mode on sample alert Or toast alert

\#Methods

\#Done login we have method called doneLogin this method process after user is login you can add your custom logic here if you want the default action to rediret to home or if you set successUrl property the lib will redirect user to this url

```
AL.doneLogin = function(){
            alert('login');
        };
```

\#Error login we have method called errorLogin this method process if user have error in login like wrong login info add your custom logic here if you want , the default action to show user error in depend on user mode select you can run your custom error show if you want the function will return with error that laravel pass

```
  AL.errorLogin = function (error) {
            console.log(error)
        };
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd949da6bbc3785bff4c5e6f514b8ed38e200318ca759b5982a0d7fa1c9b1b5f?d=identicon)[zizohassan](/maintainers/zizohassan)

---

Top Contributors

[![zizohassan](https://avatars.githubusercontent.com/u/10069936?v=4)](https://github.com/zizohassan "zizohassan (15 commits)")

### Embed Badge

![Health badge](/badges/5dmatweblogin-ajaxlogin/health.svg)

```
[![Health](https://phpackages.com/badges/5dmatweblogin-ajaxlogin/health.svg)](https://phpackages.com/packages/5dmatweblogin-ajaxlogin)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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