title: How to Keep selected value select after page reload in laravel?
body: <p>I dont know exactly how to do this. I have try tu put in Session using Session::put() and get the curent session with session::get() but still nothing work.. </p>
  
  <p>my blade.php</p>
  
  <pre><code>  &lt;select name="tahun" class="form-control"&gt;
          &lt;option&gt;-- Semua --&lt;/option&gt;
        @for($tahun_skr = $tahun_skr_bgt; $tahun_skr &gt;= $tahun_awal_bgt; $tahun_skr--)
          &lt;option value="{{ $tahun_skr }}" selected="{{ $tahun_skr }}"&gt;{{ $tahun_skr }}&lt;/option&gt;
        @endfor
        &lt;/select&gt; 
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function index(Request $request)
      {
          $tahun_awal_bgt = 1990;
          $tahun_skr_bgt = date('Y');
  return view('laporan.posisikeuangan_laporan')-&gt;with(['tahun_awal_bgt' =&gt; $tahun_awal_bgt,'tahun_skr_bgt' =&gt; $tahun_skr_bgt]); }
  </code></pre>
  
  <p>Can anyone help ?</p>