V
V
Vladislav2017-03-17 08:06:45
Laravel
Vladislav, 2017-03-17 08:06:45

How to generate a token from a User in laravel and store it in the database?

Tell me how to generate a token from a User in laravel and store it in the database.
I am using laravel 5.3 + Sentinel

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mokhirjon Naimov, 2017-03-22
@zvermafia

How to generate token in laravel

It is possible like this:
$token = str_random(32);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question