Insert a value to hidden input Laravel Blade
<p>How to pass a value to hidden input ?</p>

<p>Create form :</p>

<pre><code>@if (isset($id))
    {!! Form::hidden('edition', $id) !!}
@endif
</code></pre>

<p>I got the form id by url like this : </p>

<pre><code>&lt;a href="../journal/create?edition={{$edition-&gt;id}}" class="btn btn-primary"&gt;Add Journal&lt;/a&gt;
</code></pre>

<p>( when I click Add Journal button it will shows a create form with edition id at the url)</p>

<p>and the controller is :</p>

<pre><code>$id = $request-&gt;get('edition');
        $journal = Edition::findOrFail($id)-&gt;journal()-&gt;create($input);
</code></pre>

<p>The result gave me this error "<code>No query results for model [App\Edition].</code>"</p>