G
G
GaserV2017-08-22 21:00:44
MySQL
GaserV, 2017-08-22 21:00:44

How to make a redirect after login to the requested page?

Good afternoon! Please tell me how to implement. Now, if a user tries to open a page that requires authorization, he is redirected to the main page and a login modal appears. How to make it return to the requested page before login after login? There is an option to return the requested page in the parameter and redirect using JS after login, but can it be done using Lara's tools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2019-04-26
@Us59

SELECT ...
  FROM (
    SELECT 0 AS `order`, ...
      FROM `sc_order` 
      WHERE `StatusId` = 5
    UNION SELECT 1 AS `order`, ...
      FROM `codes` 
      WHERE ...
  ) AS `t`
  ORDER BY `order`
  LIMIT 20

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question