Revived API POST /captcha/{captcha_uuid}.
Receiving captcha information for validation.
This commit is contained in:
		
							
								
								
									
										30
									
								
								app/Http/Resources/Api/V1/CaptchaVerificationInformation.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/Http/Resources/Api/V1/CaptchaVerificationInformation.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
<?php declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace App\Http\Resources\Api\V1;
 | 
			
		||||
 | 
			
		||||
use Illuminate\Http\Request;
 | 
			
		||||
use Illuminate\Http\Resources\Json\JsonResource;
 | 
			
		||||
 | 
			
		||||
final class CaptchaVerificationInformation extends JsonResource
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * @var \App\ServiceResults\Api\V1\CaptchaService\CaptchaVerificationInformationResult
 | 
			
		||||
     */
 | 
			
		||||
    public $resource;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Transform the resource into an array.
 | 
			
		||||
     *
 | 
			
		||||
     * @param  Request $request
 | 
			
		||||
     * @return array
 | 
			
		||||
     */
 | 
			
		||||
    public function toArray(Request $request): array
 | 
			
		||||
    {
 | 
			
		||||
        $info = [];
 | 
			
		||||
 | 
			
		||||
        return [
 | 
			
		||||
            'status' => $this->resource->isStatus(),
 | 
			
		||||
            'message' => $this->resource->getMessage(),
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user