A
A
AleDv2018-08-07 12:52:00
Laravel
AleDv, 2018-08-07 12:52:00

Where to place call to Geo definition method in Laravel?

Hello. There is a class with a method that determines the Geo position of the visitor by IP. It is necessary for the definition to work when visiting any page of the site.
Where is the best place to place a call to such a method? To a service provider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-08-07
@JhaoDa

In middleware.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question