Skip to content
Advertisement

Tag: eloquent

How to use my own pre-existing table for authentication in laravel 8?

I installed auth in laravel 8 but I don’t want to use the default table dedicated for authentication Users because I have my table Users_inf in this case I can’t use migration, Users_inf also has 200 records. Users_inf(user_id, password, user_name,privilege,active,CREATED_AT,UPDATED_AT). CREATED_AT and UPDATED_AT added by me to be compatible with laravel. I am using user_name for login not email. please,

Laravel controller function times out, 50000 users

In my controller I have a have a function to check subscription status and update it in my database. The problem is with 50000 users, it takes too long to finish and times out. I’m sure I shouldn’t even process that many at a time but I kinda got stuck here and am not sure how exactly to approach this.

Advertisement