/** * Creates a custom Form macro * @return void */ public function createMacroForm() { app('form')->macro('recaptcha', function ($options = []) { $o = new Recaptcha(); return $o->get($options); }); app('form')->macro('mailhideHtml', function ($email) { $o = new Recaptcha(); return $o->getMailhideHtml($email); }); app('form')->macro('mailhideUrl', function ($email) { $o = new Recaptcha(); return $o->getMailhideUrl($email); }); }