title: Laravel 5.7 echo out session value in blade
body: <p>I am trying to echo out the value of a session that I set in Controller</p>
  
  <pre><code>public function changeLanguage(Request $request){
      if($request-&gt;ajax()){
          $request-&gt;session()-&gt;put('locale',$request-&gt;locale);
          $request-&gt;session()-&gt;flash('alert-success',('app.Locale_Change_Success'));
      } 
  }
  </code></pre>
  
  <p>the Values of <code>$request->local</code> that submits by ajax are <b>dr</b> and <b>en</b>.
  Now I want to the value of <b>dr</b> and <b>en</b> in blade, the code looks like this</p>
  
  <pre><code>@if(Session::has('locale','en'))
      &lt;link rel="stylesheet" type="text/css" href="css/en.css"&gt;
  @endif
  @if(Session::has('locale','dr'))
      &lt;link rel="stylesheet" type="text/css" href="css/dr.css"&gt;
  @endif
  </code></pre>