title: Laravel Route Group for Views
body: <p>I have below configuration in my Laravel /routes/web.php:</p>
  
  <pre><code>Route::group(['prefix' =&gt; 'admin'], function(){
      Route::get('/', function() {
          return view('admin.login');
      });
  });
  </code></pre>
  
  <p>If you observe, I have mentioned <code>view('admin.login')</code> this calls <code>/resources/views/admin/login.blade.php</code>. Which holds good as of now.</p>
  
  <p>But for this Route group, I will have all my views inside <code>/resources/views/admin</code>. Thus, I do not want to use <code>admin</code> before every view-name. </p>
  
  <p>Is there any possible parameter at <code>Route::group</code> level by which I can define namespace of my views, so that the Laravel searches my views in the particular directory inside <code>/resources/views/</code>?</p>