title: how to use INSERT or UPDATE command from same controller in laravel
body: <p>I have a form in which there is a textarea field, on page load, it will fetch the detail from a table, (for the first time it will show blank as first time there is no record in table), there is an update button which is used to insert value of that field in database, after that page will get reload and i will get the value in that field from database, when i again change the value of that field, clicked on update button, it should update the value of that field in database and fetch that detail from database,</p>
  
  <p>So how can i use same controller on that update button to first insert value in database and then update value in database?</p>