for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPHub\Providers;
use Auth;
use Dingo\Api\Auth\Auth as DingoAuth;
use Dingo\Api\Auth\Provider\OAuth2;
use Illuminate\Support\ServiceProvider;
use PHPHub\User;
class OAuthServiceProvider extends ServiceProvider
{
public function boot()
$this->app[DingoAuth::class]->extend('oauth', function ($app) {
$provider = new OAuth2($app['oauth2-server.authorizer']->getChecker());
$provider->setUserResolver(function ($id) {
Auth::loginUsingId($id);
return User::findOrFail($id);
});
$provider->setClientResolver(function ($id) {
$id
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
//TODO: Logic to return a client by their ID.
return $provider;
}
public function register()
//
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.