staffmanager/app/Providers/ContextAwareValidatorProvid...

35 lines
504 B
PHP
Raw Permalink Normal View History

<?php
2020-10-21 00:01:41 +00:00
namespace App\Providers;
2020-10-21 00:01:41 +00:00
use Illuminate\Support\ServiceProvider;
use App;
class ContextAwareValidatorProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
App::bind('contextAwareValidator', function(){
return new App\Helpers\ContextAwareValidator();
});
}
}