This repository was archived by the owner on Apr 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1414class Olark extends \AdrianMejias \Olark \Facades \OlarkFacade { }
1515class OlarkFacade extends \AdrianMejias \Olark \Olark { }
1616class OlarkException extends \Exception { }
17+ class OlarkSiteIdException extends \AdrianMejias \Olark \Exceptions \OlarkSiteIdException { }
18+ class OlarkDisabledException extends \AdrianMejias \Olark \Exceptions \OlarkDisabledException {}
1719class OlarkServiceProvider extends \Illuminate \Support \ServiceProvider { }
Original file line number Diff line number Diff line change 44
55return [
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];
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace AdrianMejias \Olark ;
6-
75if (! function_exists ('olark ' )) {
86 /**
97 * Get the Olark instance.
You can’t perform that action at this time.
0 commit comments