title: using form input value in form action, Laravel 5.4
body: <p>I've written some code to retrieve some data from database when a user visits a url. 
  For example, When someone visits this :</p>
  
  <pre><code>http://localhost:8000/home/foo
  </code></pre>
  
  <p>He will see something like :<br /></p>
  
  <pre><code>foome
  fooyou
  foohim
  fooher
  </code></pre>
  
  <p>Now, I want to configure it and make an html form in my home.blade.php page.<br />When someone enters a query in this simple form, He should be redirected to a url just like above.
  For example, Let's say that he enters "foo1" into this form. He should goes to :</p>
  
  <pre><code>http://localhost:8000/home/foo1
  </code></pre>
  
  <p>and see the same values as above :</p>
  
  <pre><code>foo1me
  foo1you
  foo1him
  foo1her
  </code></pre>
  
  <p>So, I've used this in my controller :</p>
  
  <pre><code>    class DomainGeneratorController extends Controller
  {
      public function keywordreturn()
      {
          return  view('home');
      }
      public function userkeyword(Request $inputtedkeyword, $id)
      {
          $blog = DB::table('keywords')-&gt;pluck('blog');
          $hosting = DB::table('keywords')-&gt;pluck('hosting');
          return view('home', ['inputtedkeyword' =&gt; $id, 'category' =&gt; $blog]);
      }
  }
  </code></pre>
  
  <p>and here is my routes :</p>
  
  <pre><code>Route::get('/', 'DomainGeneratorController@keywordreturn');
  
  Route::auth();
  
  Route::get('/home', 'DomainGeneratorController@keywordreturn');
  Route::resource('home/{id}', 'DomainGeneratorController@userkeyword');
  </code></pre>
  
  <p>Finally, Here is home.blade.php :</p>
  
  <pre><code>&lt;div class="panel-body"&gt;
      @if(isset($category))
          &lt;table&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;Keyword&lt;/td&gt;
                  &lt;td&gt;.COM&lt;/td&gt;
                  &lt;td&gt;.NET&lt;/td&gt;
                  &lt;td&gt;.ORG&lt;/td&gt;
              &lt;/tr&gt;
              @foreach( $category as $item )
                  &lt;tr&gt;
                      &lt;td&gt;{{ $inputtedkeyword }}{{ $item }}&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;{{ $item }}{{ $inputtedkeyword }}&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;/tr&gt;
              @endforeach
              &lt;/tbody&gt;
          &lt;/table&gt;
      @else
          &lt;p&gt;Enter your own keyword&lt;/p&gt;
  
          &lt;form method="POST" id="domaininput"
                action="{{ action('DomainGeneratorController@userkeyword', $id = Request::get("find")) }}"&gt;
              &lt;div id="check" class="input-group margin-bottom-sm"&gt;
                  &lt;input class="form-control" type="text" name="find" placeholder="Search"&gt;
                  &lt;button type="submit"&gt;
                      &lt;div id="search" class="input-group-addon"&gt;
                          &lt;i class="fa fa-search"&gt;&lt;/i&gt;
                      &lt;/div&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      @endif
  &lt;/div&gt;
  </code></pre>
  
  <p>Where am I doing wrong? Please help me. Thanks.</p>