Making WordPress passwords work in Laravel · vanrossum.dev    

       vanrossum.dev 

 Article

Making WordPress passwords work in Laravel
==========================================

 ![](https://vanrossum.dev/images/jeffrey-portrait.webp) By Jeffrey van Rossum

  vanrossum.dev  

  [      vanrossum.dev ](https://vanrossum.dev)                      

  [ ← Writing ](https://vanrossum.dev/posts)   [ ← Writing ](https://vanrossum.dev/posts) [ Step 1 ](#step-1) [ Step 2 ](#step-2) [ Step 3 ](#step-3) [ That's it ](#thats-it) 

When you are exporting WordPress users to a Laravel Application, you’ll notice that the hashed password from WordPress will not authenticate in Laravel.

Now instead of your users having to reset the password, you can follow the next steps.

Step 1
------

Install the [Laravel WP Password](https://github.com/mikemclin/laravel-wp-password) package and follow the installation instructions.

Step 2
------

In this step, we are going to listen to failed login attempts. We do this by creating a so called event listener. Create a file called `LogFailedAuthenticationAttempt.php` and place it in `app/Listeners`. Next, implement the following code in that file:

```php
