Email.php 292 B

12345678910111213141516
  1. <?php
  2. namespace Dcat\Admin\Form\Field;
  3. class Email extends Text
  4. {
  5. protected $rules = ['nullable', 'email'];
  6. public function render()
  7. {
  8. $this->prepend('<i class="ti-email"></i>')
  9. ->defaultAttribute('type', 'email');
  10. return parent::render();
  11. }
  12. }