Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php namespace App\Providers;
  2.  
  3. use App\Services\MyValidator;
  4. use Illuminate\Support\Facades\Validator;
  5. use Illuminate\Support\ServiceProvider;
  6.  
  7. class MyServiceProvider extends ServiceProvider {
  8.  
  9. /**
  10. * Bootstrap the application services.
  11. *
  12. * @return void
  13. */
  14. public function boot()
  15. {
  16. Validator::resolver(function($translator, $data, $rules, $messages)
  17. {
  18. return new MyValidator($translator, $data, $rules, $messages);
  19. });
  20. }
  21.  
  22. /**
  23. * Register the application services.
  24. *
  25. * @return void
  26. */
  27. public function register()
  28. {
  29. //
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement