title: How get id off button in laravel controller laravel 5.3
body: <p>Here i have buttons like this</p>
  
  <pre><code>&lt;button type="submit" name="submit_1" class="btn green" value="submit_1"&gt;Save &amp; Add Another&lt;/button&gt;
  &lt;button type="submit" name="submit_1" class="btn green" value="submit_2"&gt;Save &amp; Exit&lt;/button&gt;
  </code></pre>
  
  <p>in my controller i redirect pages on button click i cannot change name of buttons because i am using in update function to redirect with <strong>submit_1</strong>
  now what should do i also can use id maybe for this but dont know how to use it </p>
  
  <pre><code>if(Input::get('submit_1')) {
          return redirect()-&gt;route('data.create');
      } elseif(Input::get('')) {
          return redirect()-&gt;route('data.index');
      }
  </code></pre>
  
  <p>Its always redirect to create page but i want if i click <strong>button2</strong> which is <strong>Save &amp; Exit</strong> it should be redirect to index page.
  what should i do to to differentiate between buttons except changing name of buttons.. if any method with id please help me and guide to best </p>