PHP code example of naviisml / laravel-api-guard
1. Go to this page and download the library: Download naviisml/laravel-api-guard library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
naviisml / laravel-api-guard example snippets
Route::middleware('auth:apikey')->group(function () {
Route::get('/secure-endpoint', fn() => 'Access granted');
});
sh
php artisan make:api-keys