PHP code example of mariojgt / masterkey
1. Go to this page and download the library: Download mariojgt/masterkey 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/ */
mariojgt / masterkey example snippets
Route::middleware(\Mariojgt\MasterKey\Http\Middleware\AuthToken::class)
->get('/api/me', fn() => auth()->user());
bash
composer vendor:publish --provider="Mariojgt\MasterKey\MasterKeyServiceProvider" --tag=config
php artisan migrate