Silvan Mühlemann for the inspiration of the CSS implementation.Scott Yang for the JavaScript used in this method.The extension exposes an obfuscateEmail Twig filter, which can be applied to any string. $twig->addExtension(new \Gremo\EmailObfuscator\Twig\Extension()) If you want to apply obfuscation only on specific strings, just use the obfuscateEmail($string) function.Īdd the extension to the Twig_Environment: $twig = new Twig_Environment(.).and apply controller middleware as usual in a controller's construct method or route definition: public function _construct() 'obfuscate' => \Gremo\EmailObfuscator\Laravel\Middleware::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |