Hello! Given: project on Laravel 5.4. It is necessary, when the user is authorized, to check whether he has collected the goods in the cart earlier (before authorization, that is). Items in the cart immediately after the selection by the user are added to the database. If the user was not authorized at the time of the choice, then the session id is indicated in the records. According to this id record you can and "pull."
When the user is authorized, naturally, a new session begins. Now the question. Where can I "catch" the moment when the new session has not yet begun, and the system has already checked the input data? At least which way to look? Or is there simply no such moment in Laravel?