<?php
namespace Mews\Captcha;
use Laravel\Lumen\Routing\Controller;
/**
* Class CaptchaController
* @package Mews\Captcha
*/
class LumenCaptchaController extends Controller
{
/**
* get CAPTCHA
*
* @param \Mews\Captcha\Captcha $captcha
* @param string $config
* @return \Intervention\Image\ImageManager->response
*/
public function getCaptcha(Captcha $captcha, $config = 'default')
{
return $captcha->create($config);
}
}