Skip to content

Instantly share code, notes, and snippets.

View Tickthokk's full-sized avatar
🏯
Focused

Nick Wright Tickthokk

🏯
Focused
View GitHub Profile
@JSila
JSila / AppServiceProvider.php
Created February 6, 2015 23:03
Google ReCaptcha Laravel 5 Integration (validation rule)
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->app->validator->resolver(function($translator, $data, $rules, $messages)
{
return new GoogleReCaptchaValidator($translator, $data, $rules, $messages);