Is It Possible to Make Two Authentications in the Same Laravel Project?

Asked

Viewed 75 times

1

In Laravel we have the function Auth() that works with every part that an authentication needs.

I am developing a project that will be logged in to the Front-End (for individual customer use) and the Back-End (in the site management system).

It is possible to use the function Auth() to perform two authentications in the same project ?

Use the Laravel 5.1.

  • It would not be better to create a table with permissions?

  • No. They are tables with very different contents (columns), I do not want to mix clients with users of a system.

  • 1

    https://github.com/Kbwebs/MultiAuth Take a look at this project.

  • Laravel 5.2 has implemented Guard, which is exactly what you need ;), in previous versions use Kbwebs Multiauth: https://github.com/Kbwebs/MultiAuth

  • It worked @Rafael ...

  • Do you want the same user to use two different logins at the same time? Is that it? if it’s not that way.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.