PHPackages                             digitalnode/magiclogin-inertia - 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. digitalnode/magiclogin-inertia

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

digitalnode/magiclogin-inertia
==============================

Integration of Magic Login in a Laravel + InertiaJS project

1.3.3(1y ago)29MITPHPPHP ^8.2

Since Sep 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/digitalnodecom/magiclogin-inertia)[ Packagist](https://packagist.org/packages/digitalnode/magiclogin-inertia)[ Docs](https://github.com/digitalnodecom/magiclogin-inertia)[ RSS](/packages/digitalnode-magiclogin-inertia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (11)Used By (0)

magiclogin-inertia
==================

[](#magiclogin-inertia)

[![Latest Stable Version](https://camo.githubusercontent.com/d57513c48162f2d22466f1b8d737e4641cb083ff8e6d1a16da6ac458ad0c1b96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469676974616c6e6f64652f6d616769636c6f67696e2d696e6572746961)](https://packagist.org/packages/digitalnode/magiclogin-inertia)[![Total Downloads](https://camo.githubusercontent.com/76c2cb91d8ee25048627eaae93995a1e27015d27a200270ec54ca1fe4a95559a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6469676974616c6e6f64652f6d616769636c6f67696e2d696e6572746961)](https://packagist.org/packages/digitalnode/magiclogin-inertia)

[www.magic.mk](https://magic.mk)

**magiclogin-inertia** is a Laravel package that integrates magic.mk authentication with Laravel + Inertia.js projects. It simplifies the setup process, provides a ready-made controller, views, and migration, and allows seamless integration with your existing Laravel applications.

Features
--------

[](#features)

- Easy integration of magic.mk authentication into Laravel + Inertia.js projects.
- Automatic setup of the User model and migration, controller, routes and Vue.js auth page.

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

[](#installation)

You can **install the package** via Composer:

```
composer require digitalnode/magiclogin-inertia
```

After the installation, **run this command** to install the needed files:

```
php artisan magiclogin:install
```

Once the installation finishes, make sure to **run the migrations**:

```
php artisan migrate
```

After the installation, the **/magic-login route** leads to the magic login page.

The User model **"password" and "name" field are now nullable,** a nullable **"phone" field** is also added.

A user that has logged in through magic auth (using their mail) can later add a password form the Change Password option in their profile settings.

Remember to add the project id (slug) and project api key from your magic.mk project to your **.env**:

```
MAGIC_LOGIN_PROJECT_KEY=""
MAGIC_LOGIN_API_KEY=""
```

Customization
-------------

[](#customization)

Feel free to customize any of the files we install or change:

```
/database/migrations/..._make_name_password_email_nullable_in_users_table.php
/database/migrations/..._add_phone_to_users_table.php
/Http/Controllers/MagicAuthController.php
/Actions/Fortify/MagicLoginUpdateUserPassword.php
/Providers/FortifyServiceProvider.php
/routes/web.php
/resources/js/Pages/Auth/MagicAuth.vue
/resources/js/Pages/magicmk_integration_ES6.js
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request or open an Issue if you find a bug or have a feature request.

Credits
-------

[](#credits)

Author: Dushan Cimbaljevic Email:

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance42

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

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

Every ~15 days

Recently: every ~29 days

Total

10

Last Release

471d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

inertiajslaravelmagicloginpackagelaravelinertiamagic-loginDigitalNodemagicloginmagiclogin-inertia

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/digitalnode-magiclogin-inertia/health.svg)

```
[![Health](https://phpackages.com/badges/digitalnode-magiclogin-inertia/health.svg)](https://phpackages.com/packages/digitalnode-magiclogin-inertia)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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