PHPackages                             snosborn/laraveljwtauth - 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. snosborn/laraveljwtauth

ActiveLibrary

snosborn/laraveljwtauth
=======================

Laravel package for user module with jwt auth and api request docs

2.3(2y ago)046MITPHPPHP ^8.2

Since Jun 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/manoj-xelp/laravel-jwt-auth)[ Packagist](https://packagist.org/packages/snosborn/laraveljwtauth)[ RSS](/packages/snosborn-laraveljwtauth/feed)WikiDiscussions master Synced 1mo ago

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

Laravel User Auth package
=========================

[](#laravel-user-auth-package)

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

[](#installation)

Install the package by the following command,

```
composer require snosborn/laraveljwtauth:VERSION

```

Add Provider
------------

[](#add-provider)

Add the provider to your config/app.php into provider section if using lower version of laravel,

```
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
snosborn\laraveljwtauth\UserServiceProvider::class,

```

Add Facade
----------

[](#add-facade)

Add the Facade to your config/app.php into aliases section,

```
'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
'JWTFactory' => Tymon\JWTAuth\Facades\JWTFactory::class,

```

Add Guard in Auth file
----------------------

[](#add-guard-in-auth-file)

Add the guard for api in config\\auth.php file

'defaults' =&gt; \[ 'guard' =&gt; 'api', 'passwords' =&gt; 'users', \],

'guards' =&gt; \[ 'web' =&gt; \[ 'driver' =&gt; 'session', 'provider' =&gt; 'users', \],

```
    'api' => [
        'driver' => 'jwt',
        'provider' => 'users',
        'hash' => false,
    ],
],

```

Add validator
-------------

[](#add-validator)

Add the route middleware in middleware aliase section on kernel file

```
'validateuser' =>\App\Http\Middleware\ValidateUserMiddleware::class,

```

Publish the Assets
------------------

[](#publish-the-assets)

Run the following command to publish the files in package

```
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider" --force

php artisan jwt:secret

php artisan vendor:publish --force --provider="snosborn\laraveljwtauth\UserServiceProvider"

```

API DOC OPEN API 3.0
--------------------

[](#api-doc-open-api-30)

Run the following command to publish the package files

```
php artisan vendor:publish --tag=request-docs-config

php artisan route:cache

```

Optional publish assets
=======================

[](#optional-publish-assets)

Currently after doing this the request doc url showing not found

```
php artisan vendor:publish --tag=request-docs-assets

```

Optional middleware
===================

[](#optional-middleware)

(optional) Add the following middleware to your API, so that the SQL logs and model events are captured.

```
app/Http/Kernel.php

    'api' => [
        ...
        \Rakutentech\LaravelRequestDocs\LaravelRequestDocsMiddleware::class,
        ... and so on

```

Usage: View in the browser on /request-docs/

Environment Variable changes
============================

[](#environment-variable-changes)

Add below mentioned variables to .env

```
SERVER_URL=BACKEND_SERVER_URL

```

Composer file changes
=====================

[](#composer-file-changes)

Add below snippet to autoload section in composer.json file.

```
"files": [
        "app/Helpers/Helper.php"
    ]

```

Run composer install after adding

Countries,States, Cities data seeder
====================================

[](#countriesstates-cities-data-seeder)

Run the seeder for insert data into respective tables after migrations

```
php artisan db:seed --class=CountryStateCitySeeder

```

Note: This seeder will take upto 30 minutes due to large data sets.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~19 days

Recently: every ~66 days

Total

17

Last Release

748d ago

Major Versions

1.9 → 2.02023-08-09

PHP version history (3 changes)1.0PHP ^7.0|^8.0

2.0PHP ^8.0

2.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b541bb4dd1f206d6bd74885d1aa32176c7a308716bbb38bedfac24d2ebffd64?d=identicon)[manoj-xelp](/maintainers/manoj-xelp)

---

Top Contributors

[![manoj-xelp](https://avatars.githubusercontent.com/u/83335281?v=4)](https://github.com/manoj-xelp "manoj-xelp (51 commits)")

### Embed Badge

![Health badge](/badges/snosborn-laraveljwtauth/health.svg)

```
[![Health](https://phpackages.com/badges/snosborn-laraveljwtauth/health.svg)](https://phpackages.com/packages/snosborn-laraveljwtauth)
```

###  Alternatives

[jadjoubran/laravel5-angular-material-starter

The Laravel Framework.

1.7k17.2k](/packages/jadjoubran-laravel5-angular-material-starter)[cretueusebiu/laravel-nuxt

A Laravel-Nuxt starter project template.

1.1k6.3k](/packages/cretueusebiu-laravel-nuxt)[hanson/laravel-admin-wechat

2424.4k](/packages/hanson-laravel-admin-wechat)[dreamfactory/df-core

DreamFactory(tm) Core Components

1651.7k20](/packages/dreamfactory-df-core)[rickycezar/laravel-jwt-impersonate

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

24117.6k](/packages/rickycezar-laravel-jwt-impersonate)[sametsahindogan/laravel-jwtredis

This package allows JWT-authenticated users to be stored and management in Redis with their roles, permissions, statuses and anything you want.

1221.9k](/packages/sametsahindogan-laravel-jwtredis)

PHPackages © 2026

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