big mistake
This commit is contained in:
parent
2956bf60e9
commit
8c1a9e1c69
|
|
@ -7,16 +7,17 @@ use Illuminate\Support\Facades\Validator;
|
||||||
class ProfaneServiceProvider extends ServiceProvider
|
class ProfaneServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
public function register()
|
public function register()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-profane');
|
$this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-profane');
|
||||||
|
|
||||||
$this->publishes([
|
$this->publishes([
|
||||||
__DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'),
|
__DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'),
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
|
|
||||||
public function boot()
|
|
||||||
{
|
|
||||||
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate');
|
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate');
|
||||||
|
|
||||||
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
|
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue