title: Laravel : How to send variable from one page to another in blade
body: <p>I'm building a laravel application where from The first page I want to send a variable or say value to second page in a form ..How do I do it?
  Let's say In my first page  I have several buttons so when a user click on any one button, he will be redirected to another page where he has to submit a form.
  In first page while he select a button, he automatically select a course_id which will also submit inside the second page form. But How do i send the course_id from the first page button?</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;li&gt; &lt;a  href="{{route('registration')}}"&gt;A&lt;/a&gt; &lt;/li&gt;
  &lt;li&gt; &lt;a href="{{route('registration')}}" &gt;B&lt;/a&gt; &lt;/li&gt; 
  </code></pre>
  
  <p>When a user click on the button second page will appear ..Where I'm gonna submit a form where course_id will come from the first page means the <code>&lt;a&gt;</code> tag</p>
  
  <p>Here is my form demo:</p>
  
  <pre class="lang-php prettyprint-override"><code>{!! Form::open(array('route' =&gt; 'postRegistration','class'=&gt;'form-horizontal','method'=&gt;'POST'))  !!}
  {!! Form::token(); !!}
  {!! csrf_field() ; !!} 
  
  &lt;div class="form-group"&gt;
      &lt;label class="sr-only" for="form-first-name"&gt;Name&lt;/label&gt;
      &lt;input type="text" name="name" placeholder="Name..." class="form-first-name form-control" id="form-first-name"&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
      &lt;label class="sr-only" for="form-email"&gt;Email&lt;/label&gt;
      &lt;input type="text" name="email" placeholder="Email..." class="form-email form-control" id="form-email"&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label class="sr-only" for="form-last-name"&gt;Address&lt;/label&gt;
      &lt;textarea rows="4" style="height:100px;" name="address" placeholder="Address..." class="form-last-name form-control" id="form-last-name"&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  &lt;button type="submit" class="btn"&gt;Submit&lt;/button&gt;
  
  {!! Form::close() !!}
  </code></pre>
  
  <p>In my database I have to submit the above field as well as the course_id from the database.
  How do I do it in Laravel?</p>
  
  <p>Any suggestion or solution please?</p>