R
R
Rishat Sultanov2017-07-13 10:10:47
Laravel
Rishat Sultanov, 2017-07-13 10:10:47

How to create a user in Laravel having access only to the database?

Good afternoon!
The problem is this, you need to create a user in the MySQL database and enter the admin panel.
But as we know Laravel hashes passwords. How to get around this? Or hash your password?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Nesmeyanov, 2017-07-13
@rishatss

$user->password = bcrypt('123123');

K
Konstantin Malyarov, 2017-07-13
@Konstantin18ko

You need to know how caching works. And further through insert in a DB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question