title: Laravel 5: How to use button?
body: <p>I'm a newbie in laravel 5.. and i don't know how to use button function.. I need to save the data in database but i don't know how to do it.. Thanks for the help!!</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;title&gt;Create&lt;/title&gt;
      &lt;link rel="stylesheet" href=""&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;&lt;input type="text" placeholder="Enter Name here" name="name"&gt;&lt;/div&gt;
      &lt;div&gt;&lt;input type="text" placeholder="Author" name="author"&gt;&lt;/div&gt;
      &lt;div&gt;&lt;input type="hidden" name="action_create"&gt;&lt;/div&gt;
      &lt;div&gt;&lt;textarea name="content" id="" cols="30" rows="10"&gt;&lt;/textarea&lt;/div&gt;
      &lt;div&gt;&lt;button type="button"&gt;Button&lt;/button&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this is my route
      
  
  <pre><code>$router-&gt;get('create',['uses' =&gt; "TestController@create"]);
  $router-&gt;post('create',['uses' =&gt; "TestController@store"]);
  $router-&gt;get('edit/{blog_id?}',['uses' =&gt; "TestController@edit"]);
  $router-&gt;post('edit/{blog_id?}',['uses' =&gt; "TestController@update"]);
  $router-&gt;get('view',['uses' =&gt; "TestController@view"]);
  $router-&gt;get('/',['uses' =&gt; "TestController@index"]);
  
  public function store(InputRequest $input){
      // return 'lkjlasd';
      $new_blog = new Blog;
  
      $new_blog-&gt;fill($input-&gt;all());
  
      if($new_blog-&gt;save()){
          echo "save success.";
      }else{
          echo "db communication error";
      }
  
  }
  </code></pre>