Call route from button click laravel
<p>I am using the Laravel framework and the blade templating engine for one of my projects, where I have a route which looks like </p>

<pre><code>Route::get('/problems/{problem-id}/edit', 'AdminController@editProblem');
</code></pre>

<p>I have <strong>editProblem</strong> method in <strong>AdminController</strong> which returns a view</p>

<pre><code>public function editProblem(Problem $problem) {
        return view('admin.problem-edit', compact('problem'));
    }
</code></pre>

<p>and I have a button on a view which looks like</p>

<pre><code>&lt;button class="btn btn-xs btn-info pull-right"&gt;Edit&lt;/button&gt;
</code></pre>

<p>Now I want to call this route with the <code>$problem-&gt;id</code> when the button will be clicked. I need to pass these value on the route.</p>

<p>how can I do that?</p>