title: how to get the type of input in laravel
body: <p>I have input in my form and I want to save the name, type, and value of that input in my database when the user saves the form.</p>
  <p>I'm getting the name and value of the input but can't get the type.</p>
  <p>I've tried it with JavaScript and it works. But I want to save it using Laravel in the controller.
  Is there any way that I can get the type?</p>
  <p>using JavaScript:
  document.getElementsByName(&quot;name&quot;)[0].type
  returns &quot;text&quot;.</p>
  <p>Thanks in advance.</p>