I experienced a couple of weeks ago a similar problem. It turned out that I extended the User Model in two different files. One of the files was a backup of an older file and I forgot to remove it, in this model a wrong table was specified.
Update the above might not be the reason since you were able to get users from the db. (If you did that using the model User::
and not DB::table('users')
An other suggestion, I use Verify, an easy to use and great package (imho).
thanks for Replay MartijnThomas.
it's weird...i tried to use
$users = User::all();
to get some data from db and all works...simply the authentication system seems not work...i don't understand why in my local server authentication works and in my productiion doesn't works.
so you suggest to use Verify instead of use the embedded Laravel authentication ?
I missed to say that i'm using auth.basic filter.
This filter works on local but not in server....
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community