Create a cron script using job/events to update user location details like city, state, longitude, latitude, etc. using the zip code provided on the registration page.
// app/console/commands/Zipcron.php
public function handle()
{
try {
$test = new User()
$test->latitude = $latitude;
$test->longitude = $longitude;
$test->save();
return $this->info('successfully added');
} catch (exception $e) {
return $this->warning('successfully added');
}
}
// app/console/kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command(Commands\ZipCron::class)->everyMinute()
->appendOutputTo(storage_path('logs/scheduler.log'));
}