New

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

thisisdevelopment/laravel-api-token-middleware

Simple API token middleware for internal APIs
1,898
Install
composer require thisisdevelopment/laravel-api-token-middleware
Latest Version:v1.4.0
PHP:>=7
Laravel:9 – 13
Last Updated:Apr 23, 2026
Links: GitHub  ·  Packagist
Maintainer: ederuiter

laravel-api-token-middleware

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.

Related Packages

laragear/meta

A Laravel Package helper for Laravel Packages

1,346,523 7
cleaniquecoders/laravel-helper

Built with Laravel Standalone Package Creator

10,396 4
electro-modules/illuminate-database

Integrates the Laravel's Illuminate Database Component into the Electro framewor...

2,244 0
ipunkt/laravel-package-manager

Package Manager for laravel packages

1,744 2

Version History

Version Released PHP Laravel License
v1.4.0 >=7 ^9.2|^10.0|^11.0|^12.0|^13.0
v1.3.0 >=7 ^9.2|^10.0|^11.0|^12.0
v1.2.0 >=7 ^9.2|^10.0|^11.0
v1.1.0 >=7 ^9.2|^10.0
v1.0.0 >=7 ^9.2