Support the ongoing development of Laravel.io →
Authentication Requests Session
Last updated 1 year ago.
0

calling an external api on a middleware is not a good idea. You should consider caching that api data or maybe maintain a database for that (this is insane though :D )

also if you can move the language selection and set logic to separate function it should be okay.

0

astroanu said:

calling an external api on a middleware is not a good idea. You should consider caching that api data or maybe maintain a database for that (this is insane though :D )

also if you can move the language selection and set logic to separate function it should be okay.

Do you mean like storing the http://www.wipmania.com/ information in the session? My biggest problem however, is still how do handle the redirects correctly. I am not sure how to structure this. Could I create a middleware if I move the external api data into a session? I have never created any middleware before

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.