supervisor=$supervisor; $this->info['header']="Set a New Password"; $this->info['token']=app('auth.password.broker')->createToken($supervisor); \DB::table('password_resets')->updateOrInsert( ['email' => $supervisor->email], [ 'token' => bcrypt($this->info['token']), 'created_at'=>now() ] ); } /** * Build the message. * * @return $this */ public function build() { return $this->from( "asraful@revinr.com" )->view( 'email.supervisor_password_reset_link' )->subject('Password Reset Request: Set a New Password'); } }