Ejemplo n.º 1
0
<?php

Autoloader::map(array('LaraCaptcha\\Captcha' => __DIR__ . DS . 'classes' . DS . 'captcha.php'));
Laravel\Validator::register('laracaptcha', function ($attribute, $value, $parameters) {
    return LaraCaptcha\Captcha::check($value);
});
Ejemplo n.º 2
0
<?php

Route::get('captcha', function () {
    LaraCaptcha\Captcha::generate();
});