We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706b809 commit 6f6dbcaCopy full SHA for 6f6dbca
config/data-extractor.php
@@ -5,7 +5,7 @@
5
use Illuminate\Foundation\Auth\User;
6
7
return [
8
- 'allow_production' => env('DATA_EXTRACTOR_PRODUCTION', false),
+ 'is_enabled' => env('DATA_EXTRACTOR_ENABLED', false),
9
10
'instructions' => [
11
[
src/Extract.php
@@ -17,6 +17,10 @@ class Extract
17
18
public function __construct()
19
{
20
+ if(!config('data-extractor.is_enabled')) {
21
+ throw new Exception('Data Extractor is not enabled. Please check your configuration.');
22
+ }
23
+
24
$this->builder = new ExtractBuilder;
25
}
26
0 commit comments