Bcrypt not working in Lumen 5.4: Call to undefined function bcrypt()
Try to do it this way
'password' => password_hash('123456', PASSWORD_BCRYPT)
You could try:
app('hash')->make('yourpassword');
another solution would be to use Facades\Hash
use Illuminate\Support\Facades\Hash;
code
'password' => Hash::make('your_password')