title: How to get Laravel 5.2 model field names and types for generic forms
body: <p>I want to build a generic form creator which basically takes a certain Eloquent model and automatically builds a form with all its fields.</p>
  
  <p>Therefor I would need to know the all fields and their (data-)types of the model. So I have 2 questions:</p>
  
  <ol>
  <li>Is there a way to do this and is it a smart idea in general?</li>
  <li>Is there any easy-to-use package, that does the same thing and works with laravel 5.2. (I tried <a href="https://github.com/FrozenNode/Laravel-Administrator" rel="nofollow noreferrer">FrozenNode's <em>Laravel-Administrator</em></a> but the dos is only for laravel 4 and I don't need all its functionality) </li>
  </ol>
  
  <p>Thanks for your help!</p>
  
  <p>Best,
  Simon</p>