LdapAttributeHandler.php 407 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Adldap\Laravel\Tests\Handlers;
  3. use Adldap\Models\User;
  4. use Illuminate\Database\Eloquent\Model;
  5. class LdapAttributeHandler
  6. {
  7. /**
  8. * Synchronizes ldap attributes to the specified model.
  9. *
  10. * @param User $user
  11. * @param Model $model
  12. *
  13. * @return void
  14. */
  15. public function handle(User $user, Model $model)
  16. {
  17. $model->name = 'handled';
  18. }
  19. }