From c71c0fe6545fd65289e833d3631dee2c770c997b Mon Sep 17 00:00:00 2001 From: FeelancerE Date: Tue, 7 Jan 2020 10:03:38 +0300 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5f68fb..477f034 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,12 @@ RouterOS API client is optimized for usage as normal Laravel package, all functi for access to client object you need instead: ```php -$config = new \RouterOS\Config(['api_key' => getenv('API_KEY')]); +$config = new \RouterOS\Config([ + 'host' => '192.168.1.3', + 'user' => 'admin', + 'pass' => 'admin', + 'port' => 8728, +]); $client = new \RouterOS\Client($config); ``` @@ -31,6 +36,7 @@ Call facade and pass array of parameters to `getClient` method: ```php $client = \RouterOS::getClient([ + 'host' => '192.168.1.3', 'user' => 'admin', 'pass' => 'admin', 'port' => 8728,