Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
no-captcha
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CENTER-TBI
no-captcha
Commits
458d8912
Commit
458d8912
authored
Jan 27, 2015
by
Nguyen Van Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use config_path
parent
9001420d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/NoCaptchaServiceProvider.php
src/NoCaptchaServiceProvider.php
+4
-4
No files found.
src/NoCaptchaServiceProvider.php
View file @
458d8912
...
...
@@ -20,6 +20,10 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{
$app
=
$this
->
app
;
$this
->
publishes
([
__DIR__
.
'/config/captcha.php'
=>
config_path
(
'captcha.php'
)
]);
$app
[
'validator'
]
->
extend
(
'captcha'
,
function
(
$attribute
,
$value
)
use
(
$app
)
{
return
$app
[
'captcha'
]
->
verifyResponse
(
$value
,
$app
[
'request'
]
->
getClientIp
());
...
...
@@ -41,10 +45,6 @@ class NoCaptchaServiceProvider extends ServiceProvider {
*/
public
function
register
()
{
$this
->
publishes
([
__DIR__
.
'/config/captcha.php'
=>
$this
->
app
->
configPath
()
.
'/captcha.php'
]);
$this
->
app
->
bind
(
'captcha'
,
function
(
$app
)
{
return
new
NoCaptcha
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment