<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
denniseilander / laravel-passport-scopes-restriction example snippets
// one scope
["read-users"]
// multiple scopes
["read-users","edit-users"]
// The same scopes are defined in the allowed_scopes column of the oauth_clients table
Passport::tokensCan([
'scope-1' => 'Scope 1',
'scope-2' => 'Scope 2',
'scope-3' => 'Scope 3',
]);
POST /oauth/token ?scope=scope-1