Answer the question
In order to leave comments, you need to log in
Laravel how to resolve cookie confusion?
I will try to describe the situation as clearly as possible, since it is not even clear how to google this.
On windows openserver There are two projects on Laravel, both projects have a database. In the first project, a couple of scripts are hung on cron every 10 minutes, the execution of which takes about a minute.
In the crown, the launch line is: php /Coding/Web/OSPanel/domains/hotcoins/artisan schedule:run. In Laravel, scripts are executed in tasks not by calling classes, but by launching a link, for example , proect1/script.php.
I work in the second project, and when I access the second project in the first minute of every ten minutes, I get an error that there are no tables in the database, since the project is trying to connect to the database of the first project. The error shows that cookies from the first project are being used. We have to wait a minute until the scripts work :)) to continue working on the second project. In general, xs, even in which direction to dig, is it in cookies at all, is it worth changing the default paths for each project somewhere, and where if so?
I'm adding a screenshot of the error, maybe you can tell something from it
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question