G
G
GrenaDK2016-11-24 17:55:08
Laravel
GrenaDK, 2016-11-24 17:55:08

How to make non-User model authentication in Laravel?

I am using angular jwt laravel 5.2
Made User authentication and authorization.
But registration goes through several different groups. different tables in the database.
In other words, I need not only the User model.
Is there a simple solution?
The User extends Authenti model... and there's still a cloud of classes.
At the exit with token jwtauth:attempt(credentials) I always get a 401 error. invalid credentials.
There are no problems with the user model.
Let's say I create a Manager model by analogy with User. Where should it be registered? need help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2016-11-24
@miraage

I will assume that this package of yours does not know how to work with different authproviders.

G
GrenaDK, 2016-11-24
@GrenaDK

Apparently yes ... since everything is tied to the user.
Used tymon for laravel.
How then to change everything? Token on the client? dumb.
All 5000 records in one user table are also not an option. there are quite different entities.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question