I created a new Lumen 5.4 project and tried to seed some data. In the seeder, I used bcrypt to hash the password. But when I run php artisan db:seed
, I get this error:
Call to undefined function bcrypt()
Why can't I use bcrypt in Lumen? I have used it in Laravel previously.
You could try:
app('hash')->make('yourpassword');