Skip to main content

Posts

Showing posts from June, 2018

Captcha Use

https://m.dotdev.co/google-recaptcha-integration-with-laravel-ad0f30b52d7d http://www.17educations.com/laravel/laravel-5-google-recaptcha/ web.php Route:: get ( 'captcha/create' , 'CaptchaController@create' ); Route:: post ( 'captcha/store' , 'CaptchaController@store' ); Route:: get ( 'captcha/camera' , 'CaptchaController@camera' ); script in blade where u use captcha < script src= 'https://www.google.com/recaptcha/api.js' ></ script > @if ( session( 'status' ) ) < div class= "alert alert-success" > {{ session( 'status' ) }} </ div > @endif @if ( session( 'warning' ) ) < div class= "alert alert-warning" > {{ session( 'warning' ) }} </ div > @endif < div class= "col-md-6" > < div class= "g-recaptcha" data-sitekey= " {{env( 'NO

Email Verification in laravel

https://www.5balloons.info/user-email-verification-and-account-activation-in-laravel-5-5/ email send ko process first maa garni ... then i.t setup email sending variable in .env web.php Route:: get ( '/user/verify/{token}' , 'Auth\RegisterController@verifyUser' ); verifyuser.php model protected $guarded = []; public function user() { return $this ->belongsTo( 'App\User' , 'user_id' ); } User.php public function verifyUser() { return $this->hasOne('App\VerifyUser'); } create migration for verify_users table: Schema:: create ( 'verify_users' , function (Blueprint $table ) { $table ->increments( 'id' ); $table ->integer( 'user_id' )->unsigned(); $table ->string( 'token' ); $table ->foreign( 'user_id' )->references( 'id' )->on( 'users' )->onUpdate( 'cascade' )->onDelete( 'cascade