Download the PHP package thiagoprz/laravel-enforce-json without Composer
On this page you can find all versions of the php package thiagoprz/laravel-enforce-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thiagoprz/laravel-enforce-json
More information about thiagoprz/laravel-enforce-json
Files in thiagoprz/laravel-enforce-json
Download thiagoprz/laravel-enforce-json
More information about thiagoprz/laravel-enforce-json
Files in thiagoprz/laravel-enforce-json
Vendor thiagoprz
Package laravel-enforce-json
Short Description Laravel JSON Enforcer Middleware
License MIT
Package laravel-enforce-json
Short Description Laravel JSON Enforcer Middleware
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-enforce-json
Laravel JSON Enforcer Middleware
Laravel middleware built for json request enforcing. Just enable on any requests that are not desirable to be accessed without such headers (content-type: application/json and accept: application/json).
Installation
Install it with composer:
composer require thiagoprz/laravel-enforce-json
Enable middleware on Http Kernel (app/Http/Kernel.php):
Apply the middleware on desired routes:
api.php
or web.php
All versions of laravel-enforce-json with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3 || ^8.0
The package thiagoprz/laravel-enforce-json contains the following files
Loading the files please wait ....