From b7d5fbd9817a077f1e41366704a3f21b5517f5b8 Mon Sep 17 00:00:00 2001 From: relliv Date: Sun, 28 Jan 2024 04:29:01 +0300 Subject: [PATCH] Add usage example --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 66aed48..0393f0f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,32 @@ Ip2Location database sync package for Laravel apps. This package is designed for composer require drag-and-publish/ip2location-sync ``` +## Usage + +Run required jobs in the console. + +```php +job(Ip2LocationDownloadJob::class)->dailyAt('00:00'); + $schedule->job(Ip2LocationSyncJob::class)->dailyAt('00:00'); + } +} +``` + ### Environment Variables Define your environment variables in the `.env` file.