S
S
Sectorrbs2021-12-06 20:19:24
Laravel
Sectorrbs, 2021-12-06 20:19:24

How to password-protect only the admin panel?

I'm just learning laravel and php in general. Little by little I'm trying to learn. I work on the video, I set the possibility of authorization through ui: auth. Now, wherever I go on the site, it constantly throws out a password entry window, even if I don’t want to go to the admin panel, but, let’s say, to the main one. Please help me figure out in which direction to dig, and how can I only password-protect the admin panel so that it only asks for a password if the user tries to log in via /admin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2021-12-07
@Sanes

Auth Basic by means of a web server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question