Support the ongoing development of Laravel.io →
Configuration Authentication
Last updated 2 years ago.
0

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).

Last updated 2 years ago.
0

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 ?

Last updated 2 years ago.
0

I missed to say that i'm using auth.basic filter.

This filter works on local but not in server....

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ocraton ocraton Joined 18 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.