mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
24 lines
571 B
PHP
24 lines
571 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Affiliate;
|
|
|
|
use App\Classes\Modules\Affiliate\ControllersLogic\CreateAffiliateLogic;
|
|
use App\Models\Affiliate;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class CreateAffiliateController
|
|
{
|
|
/**
|
|
* @param Request $request
|
|
* @param CreateAffiliateLogic $logic
|
|
* @return JsonResponse
|
|
* @throws \Illuminate\Auth\Access\AuthorizationException
|
|
*/
|
|
public function create(Request $request, CreateAffiliateLogic $logic): JsonResponse
|
|
{
|
|
return $logic->execute($request);
|
|
}
|
|
}
|
|
|