Skip to content

Commit

Permalink
Dependencies for captcha #212
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Mar 16, 2018
1 parent ccbc109 commit b9380b2
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 17 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"php-units-of-measure/php-units-of-measure": "2.1.x",
"markrogoyski/math-php": "^0.38.0",
"akaunting/money": "^1.0",
"igaster/laravel-theme": "^2.0"
"igaster/laravel-theme": "^2.0",
"anhskohbo/no-captcha": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "~7.0",
Expand Down
91 changes: 75 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
Irazasyed\LaravelGAMP\LaravelGAMPServiceProvider::class,
Igaster\LaravelTheme\themeServiceProvider::class,
Nwidart\Modules\LaravelModulesServiceProvider::class,
Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,

/*
* Application Service Providers...
Expand Down Expand Up @@ -110,6 +111,7 @@
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
Expand Down
9 changes: 9 additions & 0 deletions config/captcha.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return [
'secret' => env('NOCAPTCHA_SECRET'),
'sitekey' => env('NOCAPTCHA_SITEKEY'),
'options' => [
'timeout' => 2.0,
],
];
10 changes: 10 additions & 0 deletions resources/stubs/installer/config.stub
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,22 @@ return [
'api_key' => '',
],

#
# Other settings and configuration you might not need to modify
#

# overrides cache.php
'cache' => [
'default' => '$CACHE_DRIVER$',
'prefix' => 'phpvms_',
],

'captcha' => [
'enabled' => true,
'secret' => '',
'sitekey' => '',
],

# overrides database.php
'database' => [
'default' => env('DB_CONNECTION', '$DB_CONN$'),
Expand Down

0 comments on commit b9380b2

Please sign in to comment.