Laravel Single Instance over the app
Hello everyone, I have an urgent question please.
I am building an app using Laravel, the App will have to access some Instagram data using a scrapper "https://github.com/pgrimaud/instagram-user-feed".
To achieve my goal i will have to login to my account using this package, but i want to avoid multiple login over each request to the scrapper functionalities, what is the best solution to do this?
For now i am going to use a singleton Class which will get an instance from the logged in scrapper, any other suggestions are more than welcome!
Thanks in advance.
Hi there,
According to the README.md file the verification is done, then saved to a session automatically.
So you could authenticate once and then use the session to make the requests without authenticating on each request. According to the session is valid for 1 year.
Regards,
Bobby















