Adding Google reCAPTCHA v2 to form in Laravel

Using Google reCaptcha you can protect your website from spam. Form will not get submitted until the user selects a specific number of images according to the question from the captcha box.

In this tutorial, I show how you can add Google reCaptcha v2 in your form using Laravel reCaptcha package in Laravel 9.

Adding Google reCAPTCHA v2 to form in Laravel

Read more

How to Create and Use Traits in Laravel 8

Traits are a collection of reusable methods that are accessible in multiple classes.

To access these methods in a class first need to define the trait using the use keyword and call the method using $this if it is not a static method otherwise use self::.

In this tutorial, I show how you can create and use Traits in the Controller in Laravel 8.

How to create and use Traits in Laravel 8

Read more