{"action":"closed","issue":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/302","labels_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/302/comments","events_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/302/events","html_url":"https://github.com/tymondesigns/jwt-auth/issues/302","id":113642854,"number":302,"title":"How to fix this or allow to not use Eloquent User","user":{"login":"maxiwheat","id":1927334,"avatar_url":"https://avatars.githubusercontent.com/u/1927334?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiwheat","html_url":"https://github.com/maxiwheat","followers_url":"https://api.github.com/users/maxiwheat/followers","following_url":"https://api.github.com/users/maxiwheat/following{/other_user}","gists_url":"https://api.github.com/users/maxiwheat/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiwheat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiwheat/subscriptions","organizations_url":"https://api.github.com/users/maxiwheat/orgs","repos_url":"https://api.github.com/users/maxiwheat/repos","events_url":"https://api.github.com/users/maxiwheat/events{/privacy}","received_events_url":"https://api.github.com/users/maxiwheat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T17:51:51Z","updated_at":"2015-10-28T20:37:58Z","closed_at":"2015-10-28T20:37:58Z","body":"I've used `jwt-auth` to allow authentication with Json Web Tokens to my API built with `dingo/api` and Lumen. I followed a [simple tutorial](http://laravelista.com/json-web-token-authentication-for-lumen/) to help familiarize myself with JWT.\r\n\r\nOur app is kinda special in the way we connect to the database (we use SQL Server), so we dont really use Eloquent and we make our app with custom classes to make requests to the DB.\r\n\r\nThe point is, when configuring `jwt-auth` I had an issue because of the `user` config in `/config/jwt.php`. If I did not provide this class and left it to the default generated value, I got an exception : **Class App/User does not exist**. I was forced to give it a class that our app provided. I ended up making a dummy empty class that extends `\\Illuminate\\Database\\Eloquent\\Model` just to be able to call `$this->auth->setToken($token)->getPayload()`\r\n\r\nIs there a cleaner way to do that? Or a way to desactivate the use of Eloquent for `jwt-auth` ?"}}