How can I implement custom authentication in Laravel?
There is a task to implement the following authorization:
When registering, a token is generated for the user, which is entered into the table with users in the api_token column.
and during subsequent authentication, the user is provided with it in the response.
Also implement the verification of this token in the headers of the Authorization request.Laravel Anonymous, Sep 1, 2019
To place the code, please use CodePen or similar tool. Thanks you!