Miguel Nogueira
bca6020ab0
This commit adds the ability to edit and modify existing forms. On the technical side, it also adds a new reusable validation Facade which helps reduce duplicated code.
35 lines
504 B
PHP
35 lines
504 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
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();
|
|
|
|
});
|
|
}
|
|
}
|