for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Modules\OauthClients\Http\Controllers;
use App\Modules\Core\BaseClasses\BaseApiController;
use App\Modules\OauthClients\Services\OauthClientService;
use App\Modules\Core\Http\Resources\General as GeneralResource;
class OauthClientController extends BaseApiController
{
/**
* Path of the sotre form request.
*
* @var string
*/
protected $storeFormRequest = 'App\Modules\OauthClients\Http\Requests\StoreOauthClient';
* Path of the model resource
protected $modelResource = 'App\Modules\OauthClients\Http\Resources\OauthClient';
* Init new object.
* @param OauthClientService $service
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(OauthClientService $service)
parent::__construct($service);
}
* Revoke the given client.
* @param integer $clientId Id of the client
* @return \Illuminate\Http\Response
public function revoke($clientId)
return new GeneralResource($this->service->revoke($clientId));
* Un revoke the given client.
public function unRevoke($clientId)
return new GeneralResource($this->service->unRevoke($clientId));
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.