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