Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit b28e719

Browse files
committed
Merge branch '1.x-dev'
2 parents 942acf4 + 229a369 commit b28e719

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

.ide-helper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
class Olark extends \AdrianMejias\Olark\Facades\OlarkFacade { }
1515
class OlarkFacade extends \AdrianMejias\Olark\Olark { }
1616
class OlarkException extends \Exception { }
17+
class OlarkSiteIdException extends \AdrianMejias\Olark\Exceptions\OlarkSiteIdException { }
18+
class OlarkDisabledException extends \AdrianMejias\Olark\Exceptions\OlarkDisabledException {}
1719
class OlarkServiceProvider extends \Illuminate\Support\ServiceProvider { }

config/olark.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,26 @@
44

55
return [
66

7+
/*
8+
|--------------------------------------------------------------------------
9+
| Olark Status
10+
|--------------------------------------------------------------------------
11+
|
12+
| Here you can configure Olark status.
13+
|
14+
*/
15+
716
'enable' => env('OLARK_ENABLE', true),
817

18+
/*
19+
|--------------------------------------------------------------------------
20+
| Site Id
21+
|--------------------------------------------------------------------------
22+
|
23+
| Here you can configure Olark site id.
24+
|
25+
*/
26+
927
'site_id' => env('OLARK_SITE_ID', ''),
1028

1129
];

src/Olark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function disable()
100100
*/
101101
public function isEnabled(): bool
102102
{
103-
return config('olark.enable', false) === true;
103+
return config('olark.enable', true) === true;
104104
}
105105

106106
/**
@@ -110,7 +110,7 @@ public function isEnabled(): bool
110110
*/
111111
public function isDisabled(): bool
112112
{
113-
return config('olark.enable', false) === false;
113+
return config('olark.enable', true) === false;
114114
}
115115

116116
/**

src/helpers.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
declare(strict_types=1);
44

5-
namespace AdrianMejias\Olark;
6-
75
if (! function_exists('olark')) {
86
/**
97
* Get the Olark instance.

0 commit comments

Comments
 (0)