Home>

I'm thinking about setting a viewing password and an editing password for a page.

The table "pages" has two password columns, "pass1" and "pass2", and it looks like authenticating with pass1 for browsing and authenticating with pass2 for further editing.

However, it seems that the authentication mechanism installed in laravel basically assumes only one authentication per table.
(Auth: attempt cannot be used unless one name corresponding to "password" is specified and written in EloquentUserProvider.)

Because we aren't so concerned about having two paths, we may not implement it if it seems too cumbersome, but I would like to know if there is a method that can be implemented easily.

Laravel uses version 6.