0

I am using larave 5.I already use laravel auth and it works nicely.I have two tables user and company.But now i can only auth using user table.How can i make another authentication using company.It is not possible for now merge them in a single table.

7
  • Why would someone authenticate as an entire company? Shouldn't users be members of a company and always authenticate with their individual accounts? Commented Feb 19, 2015 at 14:29
  • @ceejayoz users and company have individual login information in individual table. Commented Feb 19, 2015 at 15:41
  • Why not you introduce a column named as usertype because having two user table is not a recommended one in laravel Commented Feb 19, 2015 at 17:29
  • @SulthanAllaudeen did you read?i mentioned "It is not possible for now merge them in a single table." Commented Feb 20, 2015 at 18:40
  • @user3621494 : Then you should do authentication manually then set session for it and to proceed with it. You need to know how to do that ? Commented Feb 21, 2015 at 4:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.