New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mocode/sanctum-mongodb

Laravel Sanctum Mongodb provides a featherweight authentication system for SPAs and simple APIs.
1,955 2

Larablocks Analysis

mocode/sanctum-mongodb works with Laravel 6, 7 and 8 (latest release v2.10.0, Apr 23, 2021), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6, 7 and 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Apr 23, 2021)
  • 9 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 23, 2021.
  • No releases in the last 12 months.
  • First released: Apr 23, 2021.
  • Monthly downloads: 9.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require mocode/sanctum-mongodb
Latest Version:v2.10.0
PHP:^7.2|^8.0
Laravel:6 · 7 · 8
License:MIT
Last Updated:Apr 23, 2021
Links: GitHub  ·  Packagist
Maintainer: mocode

Introduction

Laravel Sanctum MongoDB provides a featherweight authentication system for SPAs and simple APIs.

Installation

You may install Laravel Sanctum MongoDB via the Composer package manager:

composer require mocode/sanctum-mongodb

Next, you should publish the Sanctum configuration and migration files using the vendor:publish Artisan command. The sanctum configuration file will be placed in your application's config directory:

php artisan vendor:publish --provider="Mocode\Sanctum\SanctumServiceProvider"

Finally, you should run your database migrations. Sanctum will create one database table in which to store API tokens:

php artisan migrate

Next, if you plan to utilize Sanctum to authenticate an SPA, you should add Sanctum's middleware to your api middleware group within your application's app/Http/Kernel.php file:

'api' => [
    \Mocode\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
    'throttle:api',
    \Illuminate\Routing\Middleware\SubstituteBindings::class,
],

Official Documentation

Documentation for Sanctum can be found on the Laravel website.

License

Laravel Sanctum MongoDB is open-sourced software licensed under the MIT license.

Related Packages

laravel/sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs and simp...

249,895,703 2,988
d076/sanctum-refresh-tokens

Refresh token realization for laravel sanctum

7,150 6
xaamin/sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs and simp...

3,587 1
setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

2,814 13
fahmiardi/laravel-mongodb-auth

Laravel 5.3 Auth with MongoDB and able to integrate with Passport user_id foreig...

83 0

Version History

Version Released PHP Laravel License
v2.10.0 ^7.2|^8.0 ^6.9|^7.0|^8.0 MIT