I am using jwt in luman and use primary key UUID hexadecimal. And firstly i got issues to Authenticate token by passing in header the issue was - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.id' in 'where clause' (SQL: select * from users
where users
.id
= 0 limit 1) " but i solved it using " protected $primaryKey = 'uuid'; " put in model it fine. But after i got another issue in 'jwt->attemp' it always give my UUID '30' in numeric number when i login but when i remove the code form model it's working fine. Please help me about this issues.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire