Beispiel #1
0
 /**
  * Boot do Provider.
  */
 public function boot()
 {
     parent::boot();
     // Storage Bugotoech
     Storage::extend('ntws', function ($app, $config) {
         return new \Bugotech\IO\Storage($app, $config);
     });
 }
 /**
  * Boot do Provider.
  */
 public function boot()
 {
     parent::boot();
     $trans = app('translator');
     \Validator::extend('id', '\\Bugotech\\Validation\\Validators@id', $trans->get('O :attribute deve ser um ID (Ex.: ABC999...).'));
     \Validator::extend('route', '\\Bugotech\\Validation\\Validators@route', $trans->get('O :attribute não é uma rota válida.'));
     \Validator::extend('domain', '\\Bugotech\\Validation\\Validators@domain', $trans->get('O :attribute esta inválido.'));
     \Validator::extend('checkpass', '\\Bugotech\\Validation\\Validators@checkpass', $trans->get('A senha antiga não confere.'));
 }
 /**
  * Boot do Provider.
  */
 public function boot()
 {
     parent::boot();
     $trans = app('translator');
     \Validator::extend('id', '\\Bugotech\\Validation\\Validators@id', $trans->get('validation.id'));
     \Validator::extend('route', '\\Bugotech\\Validation\\Validators@route', $trans->get('validation.route'));
     \Validator::extend('domain', '\\Bugotech\\Validation\\Validators@domain', $trans->get('validation.domain'));
     \Validator::extend('database', '\\Bugotech\\Validation\\Validators@database', $trans->get('validation.database'));
     \Validator::extend('checkpass', '\\Bugotech\\Validation\\Validators@checkpass', $trans->get('validation.checkpass'));
 }