<?php
namespace Laravel\Passport\Http\Controllers;
use Laravel\Passport\Passport;
class ScopeController
{
/**
* Get all of the available scopes for the application.
*
* @return \Illuminate\Support\Collection
*/
public function all()
{
return Passport::scopes();
}
}
In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.