A
A
Agent Gus2019-03-18 17:44:38
Laravel
Agent Gus, 2019-03-18 17:44:38

How to allow unauthorized users to access the site when testing is started?

Hello, I have a Laravel project - student testing.
The site has users:

  • Teacher (authorized user, admin)
  • Students (not authorized, guests)

The teacher in the Admin Panel has a lot of tests and can run a test so that students can be tested.
When the teacher starts a specific test, then students (guests) are allowed to go to a certain page and take the test, when all participants have passed the test, the teacher turns off the test and the page is not available to students.
I would like to ask you how to competently implement the testing process?
That is, when you click the "Start test <RP-21>" button, allow access to the page to all unauthorized users (Students), which is better to use?
Middleware+?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wells, 2019-03-18
@Alex_Wells

Middleware, no plus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question