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