Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to create captcha code in Laravel 5.8

Step:1
composer create-project –prefer-dist laravel/laravel captcha “5.8.*”

Step:2 we have to add mews Captcha package.
composer require mews/captcha

Step:3 open config/app.php file and add service provider and alias.

Step:4 routes/web.php paste this code in the web.php page

Step:5 make one controller
php artisan make: controller CaptchaController
and paste this code in this controller.

Step:6 make one blade page.
resources/views/myCaptcha.blade.php

Step:7 write this code in commad
php artisan serve

Step:8 paste this url in your browser
http://127.0.0.1:8000/my-captcha
Finally, we will see a page like this.