N
N
NubasLol2018-10-24 16:18:32
Laravel
NubasLol, 2018-10-24 16:18:32

What are "guards" and why are they needed?

I read the docks several times, but I still didn’t understand why they are needed and how to work with them. I would be happy if you can explain

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexanderqwert, 2018-10-24
@NubasLol

"Guards", "guards", "guards". These are essentially user authentication rules - in which parts of the request to store information that this request comes from an authenticated user. For example, this can be done in the session / cookies, or in some token, which must be contained in each request.In Laravel, these are session and token guards, respectively"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question