thisisdevelopment/laravel-api-token-middleware

There is no license information available for the latest version (v1.3.0) of this package.

Simple API token middleware for internal APIs

Installs: 1 385

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 0

Open Issues: 0

pkg:composer/thisisdevelopment/laravel-api-token-middleware

v1.3.0 2025-03-17 14:59 UTC

This package is auto-updated.

Last update: 2025-09-17 15:58:12 UTC


README

Simple API token middleware for Laravel applications

Setup

Publish the config by using the following command

php artisan vendor:publish --provider="ThisIsDevelopment\LaravelApiTokenMiddleware\ApiTokenServiceProvider"

The API token, token header field and unauthorized message are now configurable in config/laravel-api-token-middleware.php, the token is loaded from the INTERNAL_API_TOKEN env field by default.

Usage

To use the middleware, include:

ThisIsDevelopment\LaravelApiTokenMiddleware\Http\Middleware\VerifyInternalApiToken

In your middleware list.