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
3889b484
Commit
3889b484
authored
Jan 28, 2015
by
Nguyen Van Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publishes configure
parent
680a1e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/NoCaptchaServiceProvider.php
src/NoCaptchaServiceProvider.php
+15
-1
No files found.
src/NoCaptchaServiceProvider.php
View file @
3889b484
...
...
@@ -20,7 +20,7 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{
$app
=
$this
->
app
;
$this
->
mergeConfigFrom
(
'captcha'
,
__DIR__
.
'/config/captcha.php'
);
$this
->
bootConfig
(
);
$app
[
'validator'
]
->
extend
(
'captcha'
,
function
(
$attribute
,
$value
)
use
(
$app
)
{
...
...
@@ -35,6 +35,20 @@ class NoCaptchaServiceProvider extends ServiceProvider {
});
}
}
/**
* //
*
* @return void
*/
protected
function
bootConfig
()
{
$path
=
__DIR__
.
'/config/captcha.php'
;
$this
->
mergeConfigFrom
(
'captcha'
,
$path
);
$this
->
publishes
([
$path
=>
config_path
(
'captcha.php'
)]);
}
/**
* Register the service provider.
...
...
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