laravel-serial-number-v1 maintained by thebachtiarz
Description
A Serial Number Middleware for Laravel Project v1
Author
Last update
2022/06/19 10:15
(dev-master)
License
Downloads
4
Tags
laravel-serial-number-v1
A Serial Number Middleware for Laravel Project v1
Requires
Installation
- composer config (only if you have access)
composer config repositories.thebachtiarz/laravel-serial-number-v1 git git@github.com:thebachtiarz/laravel-serial-number-v1.git
- install repository
composer require thebachtiarz/laravel-serial-number-v1
- vendor publish
php artisan vendor:publish --provider="TheBachtiarz\SerialNumber\SerialNumberServiceProvider"
- register the Middleware into -> app/Http/Kernel.php
protected $routeMiddleware = [
...
'apiKeyService' => \TheBachtiarz\SerialNumber\Middleware\ApiKeyAccessMiddleware::class,
];
- register the REST API into -> app/Providers/RouteServiceProvider.php
Route::prefix(tbtoolkitconfig('app_prefix'))
->middleware(['api'])
->namespace($this->namespace)
->group(tbsnrouteapi());
Feature
sek males nulis cak :v