title: Laravel question, How to use _GET on Blade
body: <p>I have a question that I cant solve at this moment.</p>
  <p>I have and URL like this: <a href="https://www.example.com/schedule/2020-02-26" rel="nofollow noreferrer">https://www.example.com/schedule/2020-02-26</a></p>
  <p>i put the date on the URL with the next function:</p>
  <pre><code>   public function newdate($datevar)
      {       
          $Dates = Dates::all();
          return view('schedule', compact('Dates'), ['Dates' =&gt; 
       $Dates]);
      } //
  </code></pre>
  <p>In this example $datevar is equal to &quot;2020-02-26&quot;</p>
  <p>My question is, How can I show the $datevar in my blade? Im trying with {{$datevar}} but I get an error.</p>
  <p>To put the datevar on my function I use and other function as Request:</p>
  <pre><code>public function addnewdate(Request $request){
     $datevar = $request-&gt;input('newdate');
  
      return redirect()-&gt;to('schedule/'.$datevar);
  }
  </code></pre>
  <p>Thanks for your help</p>