title: how to switch language in laravel 5.7
body: <p>I'm new to the this forum and this is my first question. I am developing an laravel application.so that application default language is <strong><code>English</code></strong>. I want to change this in to <strong><code>Chinese</code></strong>. </p>
  
  <p>My requirement is main language is  <strong><code>Chinese</code></strong> and other language is <strong><code>English</code></strong>. My language chooser is working fine, but when i change app "local" to Chinese but it's change. I tried clear cache and recheck it same thing.not change language. I have already created two language array "en" for English "ch" for Chinese.</p>
  
  <p><strong>config/app.php</strong></p>
  
  <pre><code>'locale' =&gt; 'en',  
  
  'fallback_locale' =&gt; 'ch',
  </code></pre>
  
  <p><strong>LanguageMiddleware</strong> <code>app/Http/Middleware</code></p>
  
  <pre><code>public function handle($request, Closure $next)
  {
  
      if(Session::has('locale')){
          app()-&gt;setLocale(Session::get('locale'));
      }
  
      return $next($request);
  }
  </code></pre>
  
  <p><strong>web.php</strong> <code>routes/web.php</code></p>
  
  <pre><code>Route::group(['middleware' =&gt; 'language'],function(){
      Route::get('/', function () {
          return view('welcome');
      });
  });
  </code></pre>
  
  <p>Thank you.</p>