I am trying to connect my website to my flutter app. I made the website using laravel framework and now I have a problem logging in from my app because laravel utilizes bcrypt algorithm for hashing. How can I log in through accounts created from laravel through my app? Right now login works when hashing is done through md5 but it only works on the app and not the web. I tried using bcrypt as mentioned below but it didn't work.

```
$email = $_POST['email'];

$password = md5($_POST['password']);

$query = "SELECT * FROM users WHERE email='$email' AND password = '$password'";                  

```

tried using:

```
$password=password_hash($_POST['password'], PASSWORD_BCRYPT);                                         

```